diff options
Diffstat (limited to 'drivers/i2c/chips/eeprom.c')
-rw-r--r-- | drivers/i2c/chips/eeprom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/chips/eeprom.c b/drivers/i2c/chips/eeprom.c index 5990dd5fc773..332816431105 100644 --- a/drivers/i2c/chips/eeprom.c +++ b/drivers/i2c/chips/eeprom.c | |||
@@ -110,7 +110,8 @@ exit: | |||
110 | mutex_unlock(&data->update_lock); | 110 | mutex_unlock(&data->update_lock); |
111 | } | 111 | } |
112 | 112 | ||
113 | static ssize_t eeprom_read(struct kobject *kobj, char *buf, loff_t off, size_t count) | 113 | static ssize_t eeprom_read(struct kobject *kobj, struct bin_attribute *bin_attr, |
114 | char *buf, loff_t off, size_t count) | ||
114 | { | 115 | { |
115 | struct i2c_client *client = to_i2c_client(container_of(kobj, struct device, kobj)); | 116 | struct i2c_client *client = to_i2c_client(container_of(kobj, struct device, kobj)); |
116 | struct eeprom_data *data = i2c_get_clientdata(client); | 117 | struct eeprom_data *data = i2c_get_clientdata(client); |