aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2009-02-02 01:51:20 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 17:20:51 -0400
commitff1e6a2155a42f99a9ded8362be2962b1089296b (patch)
tree01dc93ba6a9f38b4bf88036b11f4644d0dc198ef
parent4fcec145e9eaae26864731fd6a3120d34abcaffe (diff)
V4L/DVB (11685): gspca - gspca-m5602: Constify parameters of two functions
A number of parameters to some functions in the m5602 are constant and should be flagged as such. Signed-off-by: Erik Andrén <erik.andren@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/gspca/m5602/m5602_bridge.h4
-rw-r--r--drivers/media/video/gspca/m5602/m5602_core.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_bridge.h b/drivers/media/video/gspca/m5602/m5602_bridge.h
index 34515e54c1af..1127a405c9b2 100644
--- a/drivers/media/video/gspca/m5602/m5602_bridge.h
+++ b/drivers/media/video/gspca/m5602/m5602_bridge.h
@@ -148,10 +148,10 @@ struct sd {
148}; 148};
149 149
150int m5602_read_bridge( 150int m5602_read_bridge(
151 struct sd *sd, u8 address, u8 *i2c_data); 151 struct sd *sd, const u8 address, u8 *i2c_data);
152 152
153int m5602_write_bridge( 153int m5602_write_bridge(
154 struct sd *sd, u8 address, u8 i2c_data); 154 struct sd *sd, const u8 address, const u8 i2c_data);
155 155
156int m5602_write_sensor(struct sd *sd, const u8 address, 156int m5602_write_sensor(struct sd *sd, const u8 address,
157 u8 *i2c_data, const u8 len); 157 u8 *i2c_data, const u8 len);
diff --git a/drivers/media/video/gspca/m5602/m5602_core.c b/drivers/media/video/gspca/m5602/m5602_core.c
index 36bdcda8417e..dd1024325fc7 100644
--- a/drivers/media/video/gspca/m5602/m5602_core.c
+++ b/drivers/media/video/gspca/m5602/m5602_core.c
@@ -36,7 +36,7 @@ static const __devinitdata struct usb_device_id m5602_table[] = {
36MODULE_DEVICE_TABLE(usb, m5602_table); 36MODULE_DEVICE_TABLE(usb, m5602_table);
37 37
38/* Reads a byte from the m5602 */ 38/* Reads a byte from the m5602 */
39int m5602_read_bridge(struct sd *sd, u8 address, u8 *i2c_data) 39int m5602_read_bridge(struct sd *sd, const u8 address, u8 *i2c_data)
40{ 40{
41 int err; 41 int err;
42 struct usb_device *udev = sd->gspca_dev.dev; 42 struct usb_device *udev = sd->gspca_dev.dev;
@@ -57,7 +57,7 @@ int m5602_read_bridge(struct sd *sd, u8 address, u8 *i2c_data)
57} 57}
58 58
59/* Writes a byte to to the m5602 */ 59/* Writes a byte to to the m5602 */
60int m5602_write_bridge(struct sd *sd, u8 address, u8 i2c_data) 60int m5602_write_bridge(struct sd *sd, const u8 address, const u8 i2c_data)
61{ 61{
62 int err; 62 int err;
63 struct usb_device *udev = sd->gspca_dev.dev; 63 struct usb_device *udev = sd->gspca_dev.dev;