diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/b2c2/flexcop-i2c.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/dvb-usb-i2c.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dibx000_common.c | 4 | ||||
-rw-r--r-- | drivers/media/video/cx2341x.c | 1 | ||||
-rw-r--r-- | drivers/media/video/ovcamchip/ovcamchip_priv.h | 1 | ||||
-rw-r--r-- | drivers/media/video/usbvision/usbvision-cards.c | 1 |
6 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop-i2c.c b/drivers/media/dvb/b2c2/flexcop-i2c.c index 5347a406fff7..02a0ea6e1c17 100644 --- a/drivers/media/dvb/b2c2/flexcop-i2c.c +++ b/drivers/media/dvb/b2c2/flexcop-i2c.c | |||
@@ -183,7 +183,8 @@ int flexcop_i2c_init(struct flexcop_device *fc) | |||
183 | mutex_init(&fc->i2c_mutex); | 183 | mutex_init(&fc->i2c_mutex); |
184 | 184 | ||
185 | memset(&fc->i2c_adap, 0, sizeof(struct i2c_adapter)); | 185 | memset(&fc->i2c_adap, 0, sizeof(struct i2c_adapter)); |
186 | strncpy(fc->i2c_adap.name, "B2C2 FlexCop device",I2C_NAME_SIZE); | 186 | strncpy(fc->i2c_adap.name, "B2C2 FlexCop device", |
187 | sizeof(fc->i2c_adap.name)); | ||
187 | 188 | ||
188 | i2c_set_adapdata(&fc->i2c_adap,fc); | 189 | i2c_set_adapdata(&fc->i2c_adap,fc); |
189 | 190 | ||
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c b/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c index 70df31b0a8a9..088b6dee3a7f 100644 --- a/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c +++ b/drivers/media/dvb/dvb-usb/dvb-usb-i2c.c | |||
@@ -19,7 +19,7 @@ int dvb_usb_i2c_init(struct dvb_usb_device *d) | |||
19 | return -EINVAL; | 19 | return -EINVAL; |
20 | } | 20 | } |
21 | 21 | ||
22 | strncpy(d->i2c_adap.name,d->desc->name,I2C_NAME_SIZE); | 22 | strncpy(d->i2c_adap.name, d->desc->name, sizeof(d->i2c_adap.name)); |
23 | #ifdef I2C_ADAP_CLASS_TV_DIGITAL | 23 | #ifdef I2C_ADAP_CLASS_TV_DIGITAL |
24 | d->i2c_adap.class = I2C_ADAP_CLASS_TV_DIGITAL, | 24 | d->i2c_adap.class = I2C_ADAP_CLASS_TV_DIGITAL, |
25 | #else | 25 | #else |
diff --git a/drivers/media/dvb/frontends/dibx000_common.c b/drivers/media/dvb/frontends/dibx000_common.c index a18c8f45a2ee..315e09e95b0c 100644 --- a/drivers/media/dvb/frontends/dibx000_common.c +++ b/drivers/media/dvb/frontends/dibx000_common.c | |||
@@ -105,9 +105,9 @@ struct i2c_adapter * dibx000_get_i2c_adapter(struct dibx000_i2c_master *mst, enu | |||
105 | } | 105 | } |
106 | EXPORT_SYMBOL(dibx000_get_i2c_adapter); | 106 | EXPORT_SYMBOL(dibx000_get_i2c_adapter); |
107 | 107 | ||
108 | static int i2c_adapter_init(struct i2c_adapter *i2c_adap, struct i2c_algorithm *algo, const char name[I2C_NAME_SIZE], struct dibx000_i2c_master *mst) | 108 | static int i2c_adapter_init(struct i2c_adapter *i2c_adap, struct i2c_algorithm *algo, const char *name, struct dibx000_i2c_master *mst) |
109 | { | 109 | { |
110 | strncpy(i2c_adap->name, name, I2C_NAME_SIZE); | 110 | strncpy(i2c_adap->name, name, sizeof(i2c_adap->name)); |
111 | i2c_adap->class = I2C_CLASS_TV_DIGITAL, | 111 | i2c_adap->class = I2C_CLASS_TV_DIGITAL, |
112 | i2c_adap->algo = algo; | 112 | i2c_adap->algo = algo; |
113 | i2c_adap->algo_data = NULL; | 113 | i2c_adap->algo_data = NULL; |
diff --git a/drivers/media/video/cx2341x.c b/drivers/media/video/cx2341x.c index 88dbdddeec42..d73c86aeeaac 100644 --- a/drivers/media/video/cx2341x.c +++ b/drivers/media/video/cx2341x.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/init.h> | 26 | #include <linux/init.h> |
27 | #include <linux/types.h> | 27 | #include <linux/types.h> |
28 | #include <linux/videodev2.h> | 28 | #include <linux/videodev2.h> |
29 | #include <linux/i2c.h> | ||
30 | 29 | ||
31 | #include <media/tuner.h> | 30 | #include <media/tuner.h> |
32 | #include <media/cx2341x.h> | 31 | #include <media/cx2341x.h> |
diff --git a/drivers/media/video/ovcamchip/ovcamchip_priv.h b/drivers/media/video/ovcamchip/ovcamchip_priv.h index 1231335a9f4a..50c7763d44b3 100644 --- a/drivers/media/video/ovcamchip/ovcamchip_priv.h +++ b/drivers/media/video/ovcamchip/ovcamchip_priv.h | |||
@@ -15,6 +15,7 @@ | |||
15 | #ifndef __LINUX_OVCAMCHIP_PRIV_H | 15 | #ifndef __LINUX_OVCAMCHIP_PRIV_H |
16 | #define __LINUX_OVCAMCHIP_PRIV_H | 16 | #define __LINUX_OVCAMCHIP_PRIV_H |
17 | 17 | ||
18 | #include <linux/i2c.h> | ||
18 | #include <media/ovcamchip.h> | 19 | #include <media/ovcamchip.h> |
19 | 20 | ||
20 | #ifdef DEBUG | 21 | #ifdef DEBUG |
diff --git a/drivers/media/video/usbvision/usbvision-cards.c b/drivers/media/video/usbvision/usbvision-cards.c index 13f69fe6360d..51ab265d566a 100644 --- a/drivers/media/video/usbvision/usbvision-cards.c +++ b/drivers/media/video/usbvision/usbvision-cards.c | |||
@@ -24,7 +24,6 @@ | |||
24 | 24 | ||
25 | 25 | ||
26 | #include <linux/list.h> | 26 | #include <linux/list.h> |
27 | #include <linux/i2c.h> | ||
28 | #include <media/v4l2-dev.h> | 27 | #include <media/v4l2-dev.h> |
29 | #include <media/tuner.h> | 28 | #include <media/tuner.h> |
30 | #include "usbvision.h" | 29 | #include "usbvision.h" |