diff options
author | Steven Toth <stoth@kernellabs.com> | 2009-06-25 22:50:39 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-12 11:17:54 -0400 |
commit | 21ff3e4f63a3095f739f6398accd3b43d77e30b5 (patch) | |
tree | d556861c0ab2fc8a8530683f8123011c54c47973 /drivers/media | |
parent | f659c513d59b91cd5f3c0e2a59d8d287221e98f7 (diff) |
V4L/DVB (12305): cx23885: Convert existing HVR1800 GPIO calls into new format
... improves readability and routes the calls through a specific single point.
Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-cards.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/video/cx23885/cx23885-cards.c b/drivers/media/video/cx23885/cx23885-cards.c index 742af1976809..2bf8ed604d6b 100644 --- a/drivers/media/video/cx23885/cx23885-cards.c +++ b/drivers/media/video/cx23885/cx23885-cards.c | |||
@@ -593,11 +593,12 @@ void cx23885_gpio_setup(struct cx23885_dev *dev) | |||
593 | mdelay(100); | 593 | mdelay(100); |
594 | 594 | ||
595 | /* Force the TDA8295A into reset and back */ | 595 | /* Force the TDA8295A into reset and back */ |
596 | cx_set(GP0_IO, 0x00040004); | 596 | cx23885_gpio_enable(dev, GPIO_2, 1); |
597 | cx23885_gpio_set(dev, GPIO_2); | ||
597 | mdelay(20); | 598 | mdelay(20); |
598 | cx_clear(GP0_IO, 0x00000004); | 599 | cx23885_gpio_clear(dev, GPIO_2); |
599 | mdelay(20); | 600 | mdelay(20); |
600 | cx_set(GP0_IO, 0x00040004); | 601 | cx23885_gpio_set(dev, GPIO_2); |
601 | mdelay(20); | 602 | mdelay(20); |
602 | break; | 603 | break; |
603 | case CX23885_BOARD_HAUPPAUGE_HVR1200: | 604 | case CX23885_BOARD_HAUPPAUGE_HVR1200: |