diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-05-01 17:26:27 -0400 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2007-05-01 17:26:27 -0400 |
commit | fccb56e4d82132ac15359efc9e419371e4533437 (patch) | |
tree | 15bca8fcf2d5b521f9b18979dc1e98e93f29442a /include | |
parent | dc87c3985e9b442c60994308a96f887579addc39 (diff) |
i2c: Kill i2c_adapter.class_dev
Kill i2c_adapter.class_dev. Instead, set the class of i2c_adapter.dev
to i2c_adapter_class, so that a symlink will be created for every
i2c_adapter in /sys/class/i2c-adapter.
The same change must be mirrored to i2c-isa as it duplicates some
of the i2c-core functionalities.
User-space tools and libraries might need some adjustments. In
particular, libsensors from lm_sensors 2.10.3 or later is required for
proper discovery of i2c adapter names after this change.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/i2c.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 9428092017e3..7a59dc656657 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -228,17 +228,14 @@ struct i2c_adapter { | |||
228 | int timeout; | 228 | int timeout; |
229 | int retries; | 229 | int retries; |
230 | struct device dev; /* the adapter device */ | 230 | struct device dev; /* the adapter device */ |
231 | struct class_device class_dev; /* the class device */ | ||
232 | 231 | ||
233 | int nr; | 232 | int nr; |
234 | struct list_head clients; | 233 | struct list_head clients; |
235 | struct list_head list; | 234 | struct list_head list; |
236 | char name[I2C_NAME_SIZE]; | 235 | char name[I2C_NAME_SIZE]; |
237 | struct completion dev_released; | 236 | struct completion dev_released; |
238 | struct completion class_dev_released; | ||
239 | }; | 237 | }; |
240 | #define dev_to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev) | 238 | #define dev_to_i2c_adapter(d) container_of(d, struct i2c_adapter, dev) |
241 | #define class_dev_to_i2c_adapter(d) container_of(d, struct i2c_adapter, class_dev) | ||
242 | 239 | ||
243 | static inline void *i2c_get_adapdata (struct i2c_adapter *dev) | 240 | static inline void *i2c_get_adapdata (struct i2c_adapter *dev) |
244 | { | 241 | { |