mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 22:53:20 +00:00
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>
This commit is contained in:
parent
4fcec145e9
commit
ff1e6a2155
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user