diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-10-14 01:52:16 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-22 10:01:42 -0400 |
commit | f0ad90975bc9ff6cd7361b452b31dab7a90084fc (patch) | |
tree | c3ce68befd3b25017d8c75077a0315d6827be33d /drivers/media/video/cx88/cx88.h | |
parent | 7717cbedd90381f4e60b1e230dfdfd7565c7efda (diff) |
V4L/DVB (6333): cx88: Change void* card_priv to struct vp3054_i2c_state
card_priv was only used to store a pointer to the vp3054 state struct.
There's no need to use a void * since it doesn't have multiple types.
Make the field conditional on VP3045 support. It was already conditional on
DVB support, but it's only used if VP3045 support is on, so that makes for a
better option to check.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx88/cx88.h')
-rw-r--r-- | drivers/media/video/cx88/cx88.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h index 43ba75ba94b4..2e0911bad43a 100644 --- a/drivers/media/video/cx88/cx88.h +++ b/drivers/media/video/cx88/cx88.h | |||
@@ -467,8 +467,12 @@ struct cx8802_dev { | |||
467 | #if defined(CONFIG_VIDEO_CX88_DVB) || defined(CONFIG_VIDEO_CX88_DVB_MODULE) | 467 | #if defined(CONFIG_VIDEO_CX88_DVB) || defined(CONFIG_VIDEO_CX88_DVB_MODULE) |
468 | /* for dvb only */ | 468 | /* for dvb only */ |
469 | struct videobuf_dvb dvb; | 469 | struct videobuf_dvb dvb; |
470 | #endif | ||
470 | 471 | ||
471 | void *card_priv; | 472 | #if defined(CONFIG_VIDEO_CX88_VP3054) || \ |
473 | defined(CONFIG_VIDEO_CX88_VP3054_MODULE) | ||
474 | /* For VP3045 secondary I2C bus support */ | ||
475 | struct vp3054_i2c_state *vp3054; | ||
472 | #endif | 476 | #endif |
473 | /* for switching modulation types */ | 477 | /* for switching modulation types */ |
474 | unsigned char ts_gen_cntrl; | 478 | unsigned char ts_gen_cntrl; |