summaryrefslogtreecommitdiff
path: root/drivers/media/usb/em28xx/em28xx.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-03-05 09:55:27 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-18 21:14:52 (GMT)
commit3aa2b3b9cc7cf58d044f30dcad849bff037abd25 (patch)
tree6245ee9d0ff12d7363b3f23b256ba156db4f8a3d /drivers/media/usb/em28xx/em28xx.h
parentc7a45e5b4f8c2f96cd242ae1b1c06e7fb19a08d0 (diff)
downloadlinux-fsl-qoriq-3aa2b3b9cc7cf58d044f30dcad849bff037abd25.tar.xz
[media] em28xx: Add a separate config dir for secondary bus
Prepare to register a separate bus for the second bus. For now, just add a new field. A latter patch will add the bits to make it work. This patch was generated by this script: perl -e 'while (<>) { if (s/EM2874_I2C_SECONDARY_BUS_SELECT.*\n//) { printf "\t\t.def_i2c_bus = 1,\n"; $found = 1; print $_ } else { if ($found) { s/^\s+// }; $found = 0; print $_; } }' \ drivers/media/usb/em28xx/em28xx-cards.c >a && mv a drivers/media/usb/em28xx/em28xx-cards.c Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx.h')
-rw-r--r--drivers/media/usb/em28xx/em28xx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h
index 5de7b6c..43eb1c6 100644
--- a/drivers/media/usb/em28xx/em28xx.h
+++ b/drivers/media/usb/em28xx/em28xx.h
@@ -375,6 +375,7 @@ struct em28xx_board {
int vchannels;
int tuner_type;
int tuner_addr;
+ int def_i2c_bus; /* Default I2C bus */
/* i2c flags */
unsigned int tda9887_conf;