Commit 329e2f3a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Petr Vandrovec

i2c: add struct device to i2c_client structure

Not quite ready to hook it up to the driver core yet.
parent 71bcb29d
...@@ -170,8 +170,9 @@ struct i2c_client { ...@@ -170,8 +170,9 @@ struct i2c_client {
void *data; /* for the clients */ void *data; /* for the clients */
int usage_count; /* How many accesses currently */ int usage_count; /* How many accesses currently */
/* to the client */ /* to the client */
struct device dev; /* the device structure */
}; };
#define to_i2c_client(d) container_of(d, struct i2c_client, dev)
/* /*
* The following structs are for those who like to implement new bus drivers: * The following structs are for those who like to implement new bus drivers:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment