diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2003-09-12 03:04:05 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2003-09-12 03:04:05 -0700 |
| commit | fe357594ffec8a53ad9260bb8f174d5dc03b46fa (patch) | |
| tree | 8fa184431bd5e8bf113f6f93f73c903400927bec /include/linux/i2c.h | |
| parent | 7140df082aa676f0589c5d5a13f52c088f17d21a (diff) | |
| parent | c47fd0d5ed5bd4281fbcfeb17cae34692bef7a90 (diff) | |
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/i2c-2.6
Diffstat (limited to 'include/linux/i2c.h')
| -rw-r--r-- | include/linux/i2c.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index f2dc147bda89..2bfab00071ca 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -146,6 +146,8 @@ struct i2c_driver { extern struct bus_type i2c_bus_type; +#define I2C_NAME_SIZE 50 + /* * i2c_client identifies a single device (i.e. chip) that is connected to an * i2c bus. The behaviour is defined by the routines of the driver. This @@ -166,7 +168,7 @@ struct i2c_client { /* to the client */ struct device dev; /* the device structure */ struct list_head list; - char name[DEVICE_NAME_SIZE]; + char name[I2C_NAME_SIZE]; struct completion released; }; #define to_i2c_client(d) container_of(d, struct i2c_client, dev) @@ -253,7 +255,7 @@ struct i2c_adapter { int nr; struct list_head clients; struct list_head list; - char name[DEVICE_NAME_SIZE]; + char name[I2C_NAME_SIZE]; struct completion dev_released; struct completion class_dev_released; }; |
