Skip to content

Commit

Permalink
V4L/DVB (12305): cx23885: Convert existing HVR1800 GPIO calls into ne…
Browse files Browse the repository at this point in the history
…w 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>
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Sep 12, 2009
1 parent f659c51 commit 21ff3e4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/media/video/cx23885/cx23885-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,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:
Expand Down

0 comments on commit 21ff3e4

Please sign in to comment.