i2c: Constify i2c_get_clientdata's parameter

i2c_get_clientdata doesn't change the i2c_client it is passed as a
parameter, so it can be constified. Same for i2c_get_adapdata.

Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
Jean Delvare 2008-10-22 20:21:31 +02:00
commit 7d1d8999b4
3 changed files with 4 additions and 4 deletions

View file

@ -83,7 +83,7 @@ be very useful.
void i2c_set_clientdata(struct i2c_client *client, void *data);
/* retrieve the value */
void *i2c_get_clientdata(struct i2c_client *client);
void *i2c_get_clientdata(const struct i2c_client *client);
An example structure is below.