[media] af9035: fix and enhance I2C adapter
authorAntti Palosaari <crope@iki.fi>
Mon, 2 Apr 2012 23:18:59 +0000 (20:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Apr 2012 17:53:30 +0000 (14:53 -0300)
commitad30e91befd7153827a97faa8281dcd48aa6702d
treea2074436e1b52588761ebd357b2e8942288a8d72
parent48bf7e1a9dce24adf79ea118ef001e781fb0e2e4
[media] af9035: fix and enhance I2C adapter

There was a bug I2C adapter writes and reads one byte too much.
As the most I2C clients has auto-increment register addressing
this leads next register from the target register overwritten by
garbage data.

As a change remove whole register address byte usage and write
data directly to the I2C bus without saying what are register
address bytes to firmware.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Cc: Michael Buesch <m@bues.ch>
Cc: Hans-Frieder Vogt <hfvogt@gmx.net>
Cc: Gianluca Gennari <gennarone@gmail.com>
Tested-by: Michael Buesch <m@bues.ch>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/af9035.c