diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-10-22 20:21:31 +0200 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2008-10-22 20:21:31 +0200 |
commit | 7d1d8999b4bec0ba09f935e648a688bb25596d06 (patch) | |
tree | 31bdfc0e4d33e3311298c0f563bdfa58ff1a437c /include/linux/i2c.h | |
parent | d955cafb5c288aee4d71fc8759943e3f6cc9331d (diff) | |
download | kernel_samsung_espresso10-7d1d8999b4bec0ba09f935e648a688bb25596d06.zip kernel_samsung_espresso10-7d1d8999b4bec0ba09f935e648a688bb25596d06.tar.gz kernel_samsung_espresso10-7d1d8999b4bec0ba09f935e648a688bb25596d06.tar.bz2 |
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 <khali@linux-fr.org>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 4ac8ec3..a411f0b 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -224,7 +224,7 @@ static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj) return to_i2c_client(dev); } -static inline void *i2c_get_clientdata (struct i2c_client *dev) +static inline void *i2c_get_clientdata(const struct i2c_client *dev) { return dev_get_drvdata (&dev->dev); } @@ -369,7 +369,7 @@ struct i2c_adapter { }; #define to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev) -static inline void *i2c_get_adapdata (struct i2c_adapter *dev) +static inline void *i2c_get_adapdata(const struct i2c_adapter *dev) { return dev_get_drvdata (&dev->dev); } |