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 /drivers/i2c/i2c-core.c | |
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 'drivers/i2c/i2c-core.c')
-rw-r--r-- | drivers/i2c/i2c-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 1e3e1a5b4d86..ae07b874a5d7 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -111,14 +111,14 @@ struct bus_type i2c_bus_type = { | |||
111 | 111 | ||
112 | void i2c_adapter_dev_release(struct device *dev) | 112 | void i2c_adapter_dev_release(struct device *dev) |
113 | { | 113 | { |
114 | struct i2c_adapter *adap = dev_to_i2c_adapter(dev); | 114 | struct i2c_adapter *adap = to_i2c_adapter(dev); |
115 | complete(&adap->dev_released); | 115 | complete(&adap->dev_released); |
116 | } | 116 | } |
117 | 117 | ||
118 | static ssize_t | 118 | static ssize_t |
119 | show_adapter_name(struct device *dev, struct device_attribute *attr, char *buf) | 119 | show_adapter_name(struct device *dev, struct device_attribute *attr, char *buf) |
120 | { | 120 | { |
121 | struct i2c_adapter *adap = dev_to_i2c_adapter(dev); | 121 | struct i2c_adapter *adap = to_i2c_adapter(dev); |
122 | return sprintf(buf, "%s\n", adap->name); | 122 | return sprintf(buf, "%s\n", adap->name); |
123 | } | 123 | } |
124 | 124 | ||