diff options
author | Andy Walls <awalls@radix.net> | 2009-02-21 20:27:37 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:02 -0400 |
commit | 6246d4e1b30aa9404d2603dc09a823aba36d9c13 (patch) | |
tree | 92c25cbb0626a1d92a8a5cf1d417d2b662271c9d /drivers/media/video/cx18/cx18-driver.c | |
parent | 6da6bf5e43f409672f5525657ff59282e160c59f (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-driver.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c index 544abbfb843e..fcc40bf37f2f 100644 --- a/drivers/media/video/cx18/cx18-driver.c +++ b/drivers/media/video/cx18/cx18-driver.c | |||
@@ -272,6 +272,7 @@ void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) | |||
272 | struct i2c_client c; | 272 | struct i2c_client c; |
273 | u8 eedata[256]; | 273 | u8 eedata[256]; |
274 | 274 | ||
275 | memset(&c, 0, sizeof(c)); | ||
275 | strncpy(c.name, "cx18 tveeprom tmp", sizeof(c.name)); | 276 | strncpy(c.name, "cx18 tveeprom tmp", sizeof(c.name)); |
276 | c.name[sizeof(c.name)-1] = '\0'; | 277 | c.name[sizeof(c.name)-1] = '\0'; |
277 | c.adapter = &cx->i2c_adap[0]; | 278 | c.adapter = &cx->i2c_adap[0]; |