summaryrefslogtreecommitdiff
path: root/include/linux/i2c.h
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2019-06-03 11:25:31 +0300
committerWolfram Sang <wsa@the-dreams.de>2019-06-15 00:24:33 +0300
commite1714daad7cf8fe4d6dd91adcfbbdd0604b0210d (patch)
treeb41545ac943f2d93a7c65b798dd06288b4ef539a /include/linux/i2c.h
parentc45d4ba8673196e3adc70d4a6b3752c74dd64c98 (diff)
downloadlinux-e1714daad7cf8fe4d6dd91adcfbbdd0604b0210d.tar.xz
i2c: headers: don't use 'dev' as adapter variable
It is not a struct device, so 'dev' is confusing. Use 'adap', the most common name. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r--include/linux/i2c.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index e982b8913b73..6bd199cfe61f 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -703,14 +703,14 @@ struct i2c_adapter {
};
#define to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev)
-static inline void *i2c_get_adapdata(const struct i2c_adapter *dev)
+static inline void *i2c_get_adapdata(const struct i2c_adapter *adap)
{
- return dev_get_drvdata(&dev->dev);
+ return dev_get_drvdata(&adap->dev);
}
-static inline void i2c_set_adapdata(struct i2c_adapter *dev, void *data)
+static inline void i2c_set_adapdata(struct i2c_adapter *adap, void *data)
{
- dev_set_drvdata(&dev->dev, data);
+ dev_set_drvdata(&adap->dev, data);
}
static inline struct i2c_adapter *