aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/em28xx/em28xx.h
diff options
context:
space:
mode:
authorFrank Schaefer <fschaefer.oss@googlemail.com>2013-12-01 16:06:51 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-12-10 13:08:40 -0500
commit07e4de3004ecedd67c72708d6c0fe69c51317f79 (patch)
tree88db52a8971a45ffb0ded44bb7afa39268876c98 /drivers/media/usb/em28xx/em28xx.h
parent7b2f25c0b073479fa1afea3ae65dd9d9f0da5586 (diff)
[media] em28xx: add support for GPO controlled analog capturing LEDs
Some devices are equipped with a capturing status LED that needs to be switched on/off explicitly via a GPO port. Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx.h')
-rw-r--r--drivers/media/usb/em28xx/em28xx.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h
index f8726ad5d0a8..8003c2f7bb96 100644
--- a/drivers/media/usb/em28xx/em28xx.h
+++ b/drivers/media/usb/em28xx/em28xx.h
@@ -374,6 +374,12 @@ enum em28xx_adecoder {
374 EM28XX_TVAUDIO, 374 EM28XX_TVAUDIO,
375}; 375};
376 376
377struct em28xx_led {
378 u8 gpio_reg;
379 u8 gpio_mask;
380 bool inverted;
381};
382
377struct em28xx_board { 383struct em28xx_board {
378 char *name; 384 char *name;
379 int vchannels; 385 int vchannels;
@@ -410,6 +416,9 @@ struct em28xx_board {
410 struct em28xx_input input[MAX_EM28XX_INPUT]; 416 struct em28xx_input input[MAX_EM28XX_INPUT];
411 struct em28xx_input radio; 417 struct em28xx_input radio;
412 char *ir_codes; 418 char *ir_codes;
419
420 /* LEDs that need to be controlled explicitly */
421 struct em28xx_led *analog_capturing_led;
413}; 422};
414 423
415struct em28xx_eeprom { 424struct em28xx_eeprom {