mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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:
parent
d955cafb5c
commit
7d1d8999b4
3 changed files with 4 additions and 4 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue