summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/em28xx/em28xx.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-09-08 14:04:41 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-08 14:04:41 -0300
commitf5d442837683ba80a9c7ef89e51df2677ec99ae0 (patch)
tree70e5083029afb92616ef2a01426347f12d54e327 /linux/drivers/media/video/em28xx/em28xx.h
parentf3fb970832182809d9bf8b397fe34f70404e51fd (diff)
downloadmediapointer-dvb-s2-f5d442837683ba80a9c7ef89e51df2677ec99ae0.tar.gz
mediapointer-dvb-s2-f5d442837683ba80a9c7ef89e51df2677ec99ae0.tar.bz2
em28xx: properly load ir-kbd-i2c when needed
From: Mauro Carvalho Chehab <mchehab@redhat.com> Currently, the logic to load ir i2c ancillary module is broken. It is associated to Hauppauge devices with IR flag on their eeprom, no matter if the device uses i2c or em28xx direct IR support. That's wrong. Instead, add a flag to the boards that use i2c IR chips and load the module only for those devices and if ir is not disabled. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/em28xx/em28xx.h')
-rw-r--r--linux/drivers/media/video/em28xx/em28xx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx.h b/linux/drivers/media/video/em28xx/em28xx.h
index 2d0aa6edb..3614402da 100644
--- a/linux/drivers/media/video/em28xx/em28xx.h
+++ b/linux/drivers/media/video/em28xx/em28xx.h
@@ -401,6 +401,7 @@ struct em28xx_board {
unsigned int is_webcam:1;
unsigned int no_audio:1;
unsigned int valid:1;
+ unsigned int has_ir_i2c:1;
unsigned char xclk, i2c_speed;
unsigned char radio_addr;