diff options
author | Erik Andrén <erik.andren@gmail.com> | 2009-02-02 01:51:20 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 17:20:51 -0400 |
commit | ff1e6a2155a42f99a9ded8362be2962b1089296b (patch) | |
tree | 01dc93ba6a9f38b4bf88036b11f4644d0dc198ef | |
parent | 4fcec145e9eaae26864731fd6a3120d34abcaffe (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.h | 4 | ||||
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_core.c | 4 |
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 | ||
150 | int m5602_read_bridge( | 150 | int m5602_read_bridge( |
151 | struct sd *sd, u8 address, u8 *i2c_data); | 151 | struct sd *sd, const u8 address, u8 *i2c_data); |
152 | 152 | ||
153 | int m5602_write_bridge( | 153 | int 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 | ||
156 | int m5602_write_sensor(struct sd *sd, const u8 address, | 156 | int 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[] = { | |||
36 | MODULE_DEVICE_TABLE(usb, m5602_table); | 36 | MODULE_DEVICE_TABLE(usb, m5602_table); |
37 | 37 | ||
38 | /* Reads a byte from the m5602 */ | 38 | /* Reads a byte from the m5602 */ |
39 | int m5602_read_bridge(struct sd *sd, u8 address, u8 *i2c_data) | 39 | int 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 */ |
60 | int m5602_write_bridge(struct sd *sd, u8 address, u8 i2c_data) | 60 | int 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; |