diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-05-30 10:03:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-06-05 05:35:54 -0400 |
commit | 4ecc24737700f07d6c2a8fdf8c1737e399f1830f (patch) | |
tree | cf6e57d692b3113086f8456aaf06619295cc6818 | |
parent | 5e7fdc5ed820516f8253cc7daad27cf3ee6bd784 (diff) |
V4L/DVB (7978): cx18: explicitly test for XC2028 tuner
Testing whether xceive_pin is non-zero is not good enough as 0 is a valid
value. Instead explicitly test whether the Xceive tuner is used.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/video/cx18/cx18-gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx18/cx18-gpio.c b/drivers/media/video/cx18/cx18-gpio.c index 2f324b8467cb..ceb63653c926 100644 --- a/drivers/media/video/cx18/cx18-gpio.c +++ b/drivers/media/video/cx18/cx18-gpio.c | |||
@@ -62,7 +62,7 @@ void cx18_gpio_init(struct cx18 *cx) | |||
62 | cx->gpio_dir = cx->card->gpio_init.direction; | 62 | cx->gpio_dir = cx->card->gpio_init.direction; |
63 | cx->gpio_val = cx->card->gpio_init.initial_value; | 63 | cx->gpio_val = cx->card->gpio_init.initial_value; |
64 | 64 | ||
65 | if (cx->card->xceive_pin) { | 65 | if (cx->card->tuners[0].tuner == TUNER_XC2028) { |
66 | cx->gpio_dir |= 1 << cx->card->xceive_pin; | 66 | cx->gpio_dir |= 1 << cx->card->xceive_pin; |
67 | cx->gpio_val |= 1 << cx->card->xceive_pin; | 67 | cx->gpio_val |= 1 << cx->card->xceive_pin; |
68 | } | 68 | } |