[media] tvp5150: make read operations atomic
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 27 Dec 2013 02:07:22 +0000 (23:07 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 5 Jan 2014 10:29:28 +0000 (08:29 -0200)
commit8de531b03271169458d5aad66934d097056f0d0c
treee7659d722421ccf8acf7924005c57204c8868bc0
parentf7d40eea8e3e531f1517ab7eded552e8837ef5da
[media] tvp5150: make read operations atomic

Instead of using two I2C operations between write and read,
use just one i2c_transfer. That allows I2C mutexes to not
let any other I2C transfer between the two.

Reviewed-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Tested-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/tvp5150.c