aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r--include/linux/i2c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 4ac8ec3c7927..a411f0b70e8e 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)
224 return to_i2c_client(dev); 224 return to_i2c_client(dev);
225} 225}
226 226
227static inline void *i2c_get_clientdata (struct i2c_client *dev) 227static inline void *i2c_get_clientdata(const struct i2c_client *dev)
228{ 228{
229 return dev_get_drvdata (&dev->dev); 229 return dev_get_drvdata (&dev->dev);
230} 230}
@@ -369,7 +369,7 @@ struct i2c_adapter {
369}; 369};
370#define to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev) 370#define to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev)
371 371
372static inline void *i2c_get_adapdata (struct i2c_adapter *dev) 372static inline void *i2c_get_adapdata(const struct i2c_adapter *dev)
373{ 373{
374 return dev_get_drvdata (&dev->dev); 374 return dev_get_drvdata (&dev->dev);
375} 375}