summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2009-02-02 07:51:20 +0100
committerErik Andrén <erik.andren@gmail.com>2009-02-02 07:51:20 +0100
commitc8d80c3e41a30668f485fad84257711c4061b18c (patch)
tree82ff729b0de653e370ad108e84dc93b3d25de3f7 /linux/drivers/media/video
parent16753aed2c1ac1d898461c6a35fe89c719ad5dd7 (diff)
downloadmediapointer-dvb-s2-c8d80c3e41a30668f485fad84257711c4061b18c.tar.gz
mediapointer-dvb-s2-c8d80c3e41a30668f485fad84257711c4061b18c.tar.bz2
gspca - gspca-m5602: Constify parameters of two functions
From: Erik Andrén <erik.andren@gmail.com> A number of parameters to some functions in the m5602 are constant and should be flagged as such. Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_bridge.h4
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_core.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_bridge.h b/linux/drivers/media/video/gspca/m5602/m5602_bridge.h
index 34515e54c..1127a405c 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_bridge.h
+++ b/linux/drivers/media/video/gspca/m5602/m5602_bridge.h
@@ -148,10 +148,10 @@ struct sd {
};
int m5602_read_bridge(
- struct sd *sd, u8 address, u8 *i2c_data);
+ struct sd *sd, const u8 address, u8 *i2c_data);
int m5602_write_bridge(
- struct sd *sd, u8 address, u8 i2c_data);
+ struct sd *sd, const u8 address, const u8 i2c_data);
int m5602_write_sensor(struct sd *sd, const u8 address,
u8 *i2c_data, const u8 len);
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_core.c b/linux/drivers/media/video/gspca/m5602/m5602_core.c
index 36bdcda84..dd1024325 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_core.c
+++ b/linux/drivers/media/video/gspca/m5602/m5602_core.c
@@ -36,7 +36,7 @@ static const __devinitdata struct usb_device_id m5602_table[] = {
MODULE_DEVICE_TABLE(usb, m5602_table);
/* Reads a byte from the m5602 */
-int m5602_read_bridge(struct sd *sd, u8 address, u8 *i2c_data)
+int m5602_read_bridge(struct sd *sd, const u8 address, u8 *i2c_data)
{
int err;
struct usb_device *udev = sd->gspca_dev.dev;
@@ -57,7 +57,7 @@ int m5602_read_bridge(struct sd *sd, u8 address, u8 *i2c_data)
}
/* Writes a byte to to the m5602 */
-int m5602_write_bridge(struct sd *sd, u8 address, u8 i2c_data)
+int m5602_write_bridge(struct sd *sd, const u8 address, const u8 i2c_data)
{
int err;
struct usb_device *udev = sd->gspca_dev.dev;