diff options
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/chips/eeprom.c | 3 | ||||
-rw-r--r-- | drivers/i2c/chips/max6875.c | 5 |
2 files changed, 5 insertions, 3 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); |
diff --git a/drivers/i2c/chips/max6875.c b/drivers/i2c/chips/max6875.c index 1405ce5b236c..4e238c0a7ca3 100644 --- a/drivers/i2c/chips/max6875.c +++ b/drivers/i2c/chips/max6875.c | |||
@@ -125,8 +125,9 @@ exit_up: | |||
125 | mutex_unlock(&data->update_lock); | 125 | mutex_unlock(&data->update_lock); |
126 | } | 126 | } |
127 | 127 | ||
128 | static ssize_t max6875_read(struct kobject *kobj, char *buf, loff_t off, | 128 | static ssize_t max6875_read(struct kobject *kobj, |
129 | size_t count) | 129 | struct bin_attribute *bin_attr, |
130 | char *buf, loff_t off, size_t count) | ||
130 | { | 131 | { |
131 | struct i2c_client *client = kobj_to_i2c_client(kobj); | 132 | struct i2c_client *client = kobj_to_i2c_client(kobj); |
132 | struct max6875_data *data = i2c_get_clientdata(client); | 133 | struct max6875_data *data = i2c_get_clientdata(client); |