diff options
author | David Brownell <david-b@pacbell.net> | 2007-05-01 17:26:28 -0400 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2007-05-01 17:26:28 -0400 |
commit | ef2c8321f5a27ff9ecdae1ee587430cafa495586 (patch) | |
tree | 3f32da9df21fba80bc9c83f63424d73813589cb4 /include/linux/i2c.h | |
parent | 16ffadfc680bd0683dc88573c1d72cbf1e27030e (diff) |
i2c: Rename dev_to_i2c_adapter()
Rename dev_to_i2c_adapter() as to_i2c_adapter(), since the previous
syntax was a surprising and needless difference from normal naming
conventions in Linux.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 953e71fb07b4..568dd1007b53 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -239,7 +239,7 @@ struct i2c_adapter { | |||
239 | char name[48]; | 239 | char name[48]; |
240 | struct completion dev_released; | 240 | struct completion dev_released; |
241 | }; | 241 | }; |
242 | #define dev_to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev) | 242 | #define to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev) |
243 | 243 | ||
244 | static inline void *i2c_get_adapdata (struct i2c_adapter *dev) | 244 | static inline void *i2c_get_adapdata (struct i2c_adapter *dev) |
245 | { | 245 | { |