diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-11-27 07:10:40 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:43 -0500 |
commit | 2fe3e2ee72ef17daad1d3769321bb7dd69a003a9 (patch) | |
tree | 1d2e7a225417759a5ad55408d76416af5e7e6eb8 /drivers/media/video/em28xx/em28xx.h | |
parent | f502e861849ade3a128964410c87acedf437a6a1 (diff) |
V4L/DVB (9764): em28xx: Add support for suspend the device when not used
Several chips may be turned off when the device is not used, like audio,
video and dvb demods. This patch adds a gpio callback at the core
structs to allow turning off such devices.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx.h')
-rw-r--r-- | drivers/media/video/em28xx/em28xx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index b2b41b3635e2..b505d44fed87 100644 --- a/drivers/media/video/em28xx/em28xx.h +++ b/drivers/media/video/em28xx/em28xx.h | |||
@@ -160,7 +160,7 @@ | |||
160 | #define EM2800_I2C_WRITE_TIMEOUT 20 | 160 | #define EM2800_I2C_WRITE_TIMEOUT 20 |
161 | 161 | ||
162 | enum em28xx_mode { | 162 | enum em28xx_mode { |
163 | EM28XX_MODE_UNDEFINED, | 163 | EM28XX_SUSPEND, |
164 | EM28XX_ANALOG_MODE, | 164 | EM28XX_ANALOG_MODE, |
165 | EM28XX_DIGITAL_MODE, | 165 | EM28XX_DIGITAL_MODE, |
166 | }; | 166 | }; |
@@ -336,6 +336,7 @@ struct em28xx_board { | |||
336 | unsigned int tda9887_conf; | 336 | unsigned int tda9887_conf; |
337 | 337 | ||
338 | struct em28xx_reg_seq *dvb_gpio; | 338 | struct em28xx_reg_seq *dvb_gpio; |
339 | struct em28xx_reg_seq *suspend_gpio; | ||
339 | 340 | ||
340 | unsigned int is_em2800:1; | 341 | unsigned int is_em2800:1; |
341 | unsigned int has_msp34xx:1; | 342 | unsigned int has_msp34xx:1; |