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.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 0fc59efd80e4..731928ae972c 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -158,7 +158,7 @@ struct i2c_driver {
158 * @irq: indicates the IRQ generated by this device (if any) 158 * @irq: indicates the IRQ generated by this device (if any)
159 * @driver_name: Identifies new-style driver used with this device; also 159 * @driver_name: Identifies new-style driver used with this device; also
160 * used as the module name for hotplug/coldplug modprobe support. 160 * used as the module name for hotplug/coldplug modprobe support.
161 * @list: list of active/busy clients 161 * @list: list of active/busy clients (DEPRECATED)
162 * @released: used to synchronize client releases & detaches and references 162 * @released: used to synchronize client releases & detaches and references
163 * 163 *
164 * An i2c_client identifies a single device (i.e. chip) connected to an 164 * An i2c_client identifies a single device (i.e. chip) connected to an
@@ -176,11 +176,13 @@ struct i2c_client {
176 struct device dev; /* the device structure */ 176 struct device dev; /* the device structure */
177 int irq; /* irq issued by device (or -1) */ 177 int irq; /* irq issued by device (or -1) */
178 char driver_name[KOBJ_NAME_LEN]; 178 char driver_name[KOBJ_NAME_LEN];
179 struct list_head list; 179 struct list_head list; /* DEPRECATED */
180 struct completion released; 180 struct completion released;
181}; 181};
182#define to_i2c_client(d) container_of(d, struct i2c_client, dev) 182#define to_i2c_client(d) container_of(d, struct i2c_client, dev)
183 183
184extern struct i2c_client *i2c_verify_client(struct device *dev);
185
184static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj) 186static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj)
185{ 187{
186 struct device * const dev = container_of(kobj, struct device, kobj); 188 struct device * const dev = container_of(kobj, struct device, kobj);
@@ -315,7 +317,7 @@ struct i2c_adapter {
315 struct device dev; /* the adapter device */ 317 struct device dev; /* the adapter device */
316 318
317 int nr; 319 int nr;
318 struct list_head clients; 320 struct list_head clients; /* DEPRECATED */
319 char name[48]; 321 char name[48];
320 struct completion dev_released; 322 struct completion dev_released;
321}; 323};