From: Steven Toth Date: Fri, 26 Jun 2009 02:50:39 +0000 (-0300) Subject: V4L/DVB (12305): cx23885: Convert existing HVR1800 GPIO calls into new format X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=21ff3e4f63a3095f739f6398accd3b43d77e30b5;p=linux-beck.git 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 Signed-off-by: Mauro Carvalho Chehab --- 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) 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: