[media] tda8290: Make all read operations atomic
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Jan 2011 14:58:36 +0000 (11:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jan 2011 13:45:20 +0000 (11:45 -0200)
commit567aba0b7997dad5fe3fb4aeb174ee9018df8c5b
treec4eacb99986d5efcc1e4f398b5478f6d213b8238
parent5a85025f7dabc5b039335a7d1fb5f9002efa9488
[media] tda8290: Make all read operations atomic

Read operations should be preceeded by a write operation. However,
nothing prevents that an I2C operation could happen between the two
transactions.

To avoid that problem, use an unique I2C transfer for both parts of
the I2C transaction.

Cc: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda8290.c