aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-gpio.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2009-02-21 20:27:37 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:02 -0400
commit6246d4e1b30aa9404d2603dc09a823aba36d9c13 (patch)
tree92c25cbb0626a1d92a8a5cf1d417d2b662271c9d /drivers/media/video/cx18/cx18-gpio.c
parent6da6bf5e43f409672f5525657ff59282e160c59f (diff)
V4L/DVB (10761): cx18: Change log lines for internal subdevs and fix tveeprom reads
Give messages originating from internal subdevs a header using the subdev's name. Fixed an uninitialized variable problem with reading the EEPROM, noticed from log output. Got rid of the unused cx18_av_exit() function. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-gpio.c')
-rw-r--r--drivers/media/video/cx18/cx18-gpio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/cx18/cx18-gpio.c b/drivers/media/video/cx18/cx18-gpio.c
index dcc19b1c541d..5518d1424f8f 100644
--- a/drivers/media/video/cx18/cx18-gpio.c
+++ b/drivers/media/video/cx18/cx18-gpio.c
@@ -110,8 +110,8 @@ static int gpiomux_log_status(struct v4l2_subdev *sd)
110 struct cx18 *cx = v4l2_get_subdevdata(sd); 110 struct cx18 *cx = v4l2_get_subdevdata(sd);
111 111
112 mutex_lock(&cx->gpio_lock); 112 mutex_lock(&cx->gpio_lock);
113 CX18_INFO("GPIO: direction 0x%08x, value 0x%08x\n", 113 CX18_INFO_DEV(sd, "GPIO: direction 0x%08x, value 0x%08x\n",
114 cx->gpio_dir, cx->gpio_val); 114 cx->gpio_dir, cx->gpio_val);
115 mutex_unlock(&cx->gpio_lock); 115 mutex_unlock(&cx->gpio_lock);
116 return 0; 116 return 0;
117} 117}
@@ -205,8 +205,8 @@ static int resetctrl_log_status(struct v4l2_subdev *sd)
205 struct cx18 *cx = v4l2_get_subdevdata(sd); 205 struct cx18 *cx = v4l2_get_subdevdata(sd);
206 206
207 mutex_lock(&cx->gpio_lock); 207 mutex_lock(&cx->gpio_lock);
208 CX18_INFO("GPIO: direction 0x%08x, value 0x%08x\n", 208 CX18_INFO_DEV(sd, "GPIO: direction 0x%08x, value 0x%08x\n",
209 cx->gpio_dir, cx->gpio_val); 209 cx->gpio_dir, cx->gpio_val);
210 mutex_unlock(&cx->gpio_lock); 210 mutex_unlock(&cx->gpio_lock);
211 return 0; 211 return 0;
212} 212}
@@ -297,12 +297,12 @@ int cx18_gpio_register(struct cx18 *cx, u32 hw)
297 case CX18_HW_GPIO_MUX: 297 case CX18_HW_GPIO_MUX:
298 sd = &cx->sd_gpiomux; 298 sd = &cx->sd_gpiomux;
299 ops = &gpiomux_ops; 299 ops = &gpiomux_ops;
300 str = "gpio mux"; 300 str = "gpio-mux";
301 break; 301 break;
302 case CX18_HW_GPIO_RESET_CTRL: 302 case CX18_HW_GPIO_RESET_CTRL:
303 sd = &cx->sd_resetctrl; 303 sd = &cx->sd_resetctrl;
304 ops = &resetctrl_ops; 304 ops = &resetctrl_ops;
305 str = "gpio reset ctrl"; 305 str = "gpio-reset-ctrl";
306 break; 306 break;
307 default: 307 default:
308 return -EINVAL; 308 return -EINVAL;