V4L/DVB: cx25840: Make cx25840 i2c register read transactions atomic
authorAndy Walls <awalls@md.metrocast.net>
Sun, 18 Jul 2010 20:16:16 +0000 (17:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Aug 2010 02:42:54 +0000 (23:42 -0300)
commit5f272644464bfb8cf8cec958cfc06020283c2f14
tree5ff0dacd50271a6998fe23b22ef53068fee1653f
parent18a87becf85d50e7f3d547f1b7a75108b151374d
V4L/DVB: cx25840: Make cx25840 i2c register read transactions atomic

There was a small window between writing the cx25840 register
address over the i2c bus and reading the register contents back from the
cx25840 device that the i2c adapter lock was released.  This change ensures the
adapter lock is not released until the register read is done.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx25840/cx25840-core.c