diff options
author | Steven Toth <stoth@kernellabs.com> | 2009-06-25 22:50:39 -0400 |
---|---|---|
committer | Steven Toth <stoth@kernellabs.com> | 2009-06-25 22:50:39 -0400 |
commit | 9565b71c51910214d91b7ffa96bffa3f2665c75c (patch) | |
tree | 075a3208217137d01723d76db1dcc0965643e266 | |
parent | 1024f9d1fd44ef073b47efac545a4d16b4ced8f7 (diff) | |
download | mediapointer-dvb-s2-9565b71c51910214d91b7ffa96bffa3f2665c75c.tar.gz mediapointer-dvb-s2-9565b71c51910214d91b7ffa96bffa3f2665c75c.tar.bz2 |
cx23885: Convert existing HVR1800 GPIO calls into new format
From: Steven Toth <stoth@kernellabs.com>
... improves readability and routes the calls through a specific single point.
Priority: normal
Signed-off-by: Steven Toth <stoth@kernellabs.com>
-rw-r--r-- | linux/drivers/media/video/cx23885/cx23885-cards.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linux/drivers/media/video/cx23885/cx23885-cards.c b/linux/drivers/media/video/cx23885/cx23885-cards.c index 623607b55..edb99215b 100644 --- a/linux/drivers/media/video/cx23885/cx23885-cards.c +++ b/linux/drivers/media/video/cx23885/cx23885-cards.c @@ -594,11 +594,12 @@ void cx23885_gpio_setup(struct cx23885_dev *dev) mdelay(100); /* Force the TDA8295A into reset and back */ - cx_set(GP0_IO, 0x00040004); + cx23885_gpio_enable(dev, GPIO_2, 1); + cx23885_gpio_set(dev, GPIO_2); mdelay(20); - cx_clear(GP0_IO, 0x00000004); + cx23885_gpio_clear(dev, GPIO_2); mdelay(20); - cx_set(GP0_IO, 0x00040004); + cx23885_gpio_set(dev, GPIO_2); mdelay(20); break; case CX23885_BOARD_HAUPPAUGE_HVR1200: |