[media] em28xx: Prepare to support 2 different I2C buses
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Mar 2013 09:55:26 +0000 (06:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 18 Mar 2013 21:14:15 +0000 (18:14 -0300)
commitc7a45e5b4f8c2f96cd242ae1b1c06e7fb19a08d0
treec96a6a20bfd01b1fd39b40d583508aaed543c04f
parentda508f5799659241a359e2d07abb8af905f6291c
[media] em28xx: Prepare to support 2 different I2C buses

Newer em28xx devices have 2 buses. Change the logic to allow
using both buses.
This patch was generated by this small script:
for i in drivers/media/usb/em28xx/*.c; do
sed 's,->i2c_adap,->i2c_adap[dev->def_i2c_bus],g;s,->i2c_client,->i2c_client[dev->def_i2c_bus],'
done
Of course, em28xx.h needed manual edit.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-cards.c
drivers/media/usb/em28xx/em28xx-dvb.c
drivers/media/usb/em28xx/em28xx-i2c.c
drivers/media/usb/em28xx/em28xx-input.c
drivers/media/usb/em28xx/em28xx.h