[media] af9015: fix and refactor i2c adapter algo logic
authorAntti Palosaari <crope@iki.fi>
Mon, 12 Jun 2017 20:06:19 +0000 (17:06 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 20 Jun 2017 13:23:51 +0000 (10:23 -0300)
commitd83886ff118cd93d85617362a582beec20c9e92d
treef4c755232a2cc34bbc556bf88c4847f0e52fb9f9
parentd029799b2f52e98f4b0920ed9b80b169f522e0cb
[media] af9015: fix and refactor i2c adapter algo logic

* fix write+read when write has more than one byte
* remove lock, not needed on that case
* remove useless i2c msg send loop, as we support only write, read and
write+read as one go and nothing more

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/dvb-usb-v2/af9015.c