diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-09-04 02:33:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:58 -0400 |
commit | d45b9b8ab43c8973a9630ac54f4ede6c3e009f9e (patch) | |
tree | d5937a21d2d7520cc937a93ce7caa8665a96303f /drivers/media/video/ovcamchip | |
parent | 2bb87c24d7d5639bff65b41b1306542d6d2bf7d0 (diff) |
V4L/DVB (8906): v4l-dvb: fix assorted sparse warnings
Fix sparse warnings. None are serious, but cutting down on these helps find
future serious sparse warnings/errors.
Redid the av7710.c patch based on a suggestion by Oliver Endriss.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ovcamchip')
-rw-r--r-- | drivers/media/video/ovcamchip/ovcamchip_core.c | 6 | ||||
-rw-r--r-- | drivers/media/video/ovcamchip/ovcamchip_priv.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/ovcamchip/ovcamchip_core.c b/drivers/media/video/ovcamchip/ovcamchip_core.c index 065c2454113e..2c4acbf5a4fe 100644 --- a/drivers/media/video/ovcamchip/ovcamchip_core.c +++ b/drivers/media/video/ovcamchip/ovcamchip_core.c | |||
@@ -49,12 +49,6 @@ MODULE_LICENSE("GPL"); | |||
49 | #define GENERIC_REG_ID_LOW 0x1D /* manufacturer ID LSB */ | 49 | #define GENERIC_REG_ID_LOW 0x1D /* manufacturer ID LSB */ |
50 | #define GENERIC_REG_COM_I 0x29 /* misc ID bits */ | 50 | #define GENERIC_REG_COM_I 0x29 /* misc ID bits */ |
51 | 51 | ||
52 | extern struct ovcamchip_ops ov6x20_ops; | ||
53 | extern struct ovcamchip_ops ov6x30_ops; | ||
54 | extern struct ovcamchip_ops ov7x10_ops; | ||
55 | extern struct ovcamchip_ops ov7x20_ops; | ||
56 | extern struct ovcamchip_ops ov76be_ops; | ||
57 | |||
58 | static char *chip_names[NUM_CC_TYPES] = { | 52 | static char *chip_names[NUM_CC_TYPES] = { |
59 | [CC_UNKNOWN] = "Unknown chip", | 53 | [CC_UNKNOWN] = "Unknown chip", |
60 | [CC_OV76BE] = "OV76BE", | 54 | [CC_OV76BE] = "OV76BE", |
diff --git a/drivers/media/video/ovcamchip/ovcamchip_priv.h b/drivers/media/video/ovcamchip/ovcamchip_priv.h index 9afa4fe47726..a05650faedda 100644 --- a/drivers/media/video/ovcamchip/ovcamchip_priv.h +++ b/drivers/media/video/ovcamchip/ovcamchip_priv.h | |||
@@ -53,6 +53,12 @@ struct ovcamchip { | |||
53 | int initialized; /* OVCAMCHIP_CMD_INITIALIZE was successful */ | 53 | int initialized; /* OVCAMCHIP_CMD_INITIALIZE was successful */ |
54 | }; | 54 | }; |
55 | 55 | ||
56 | extern struct ovcamchip_ops ov6x20_ops; | ||
57 | extern struct ovcamchip_ops ov6x30_ops; | ||
58 | extern struct ovcamchip_ops ov7x10_ops; | ||
59 | extern struct ovcamchip_ops ov7x20_ops; | ||
60 | extern struct ovcamchip_ops ov76be_ops; | ||
61 | |||
56 | /* --------------------------------- */ | 62 | /* --------------------------------- */ |
57 | /* I2C I/O */ | 63 | /* I2C I/O */ |
58 | /* --------------------------------- */ | 64 | /* --------------------------------- */ |