diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-10-22 22:21:31 +0400 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2008-10-22 22:21:31 +0400 |
commit | 7d1d8999b4bec0ba09f935e648a688bb25596d06 (patch) | |
tree | 31bdfc0e4d33e3311298c0f563bdfa58ff1a437c /include/linux/device.h | |
parent | d955cafb5c288aee4d71fc8759943e3f6cc9331d (diff) | |
download | linux-7d1d8999b4bec0ba09f935e648a688bb25596d06.tar.xz |
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/device.h')
-rw-r--r-- | include/linux/device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 987f5912720a..1a3686d15f98 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -450,7 +450,7 @@ static inline void set_dev_node(struct device *dev, int node) } #endif -static inline void *dev_get_drvdata(struct device *dev) +static inline void *dev_get_drvdata(const struct device *dev) { return dev->driver_data; } |