diff options
Diffstat (limited to 'drivers/i2c/chips/ds1682.c')
-rw-r--r-- | drivers/i2c/chips/ds1682.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/i2c/chips/ds1682.c b/drivers/i2c/chips/ds1682.c index 25fd4676fb17..5879f0f25495 100644 --- a/drivers/i2c/chips/ds1682.c +++ b/drivers/i2c/chips/ds1682.c | |||
@@ -140,8 +140,8 @@ static const struct attribute_group ds1682_group = { | |||
140 | /* | 140 | /* |
141 | * User data attribute | 141 | * User data attribute |
142 | */ | 142 | */ |
143 | static ssize_t ds1682_eeprom_read(struct kobject *kobj, char *buf, loff_t off, | 143 | static ssize_t ds1682_eeprom_read(struct kobject *kobj, struct bin_attribute *attr, |
144 | size_t count) | 144 | char *buf, loff_t off, size_t count) |
145 | { | 145 | { |
146 | struct i2c_client *client = kobj_to_i2c_client(kobj); | 146 | struct i2c_client *client = kobj_to_i2c_client(kobj); |
147 | int rc; | 147 | int rc; |
@@ -163,8 +163,8 @@ static ssize_t ds1682_eeprom_read(struct kobject *kobj, char *buf, loff_t off, | |||
163 | return count; | 163 | return count; |
164 | } | 164 | } |
165 | 165 | ||
166 | static ssize_t ds1682_eeprom_write(struct kobject *kobj, char *buf, loff_t off, | 166 | static ssize_t ds1682_eeprom_write(struct kobject *kobj, struct bin_attribute *attr, |
167 | size_t count) | 167 | char *buf, loff_t off, size_t count) |
168 | { | 168 | { |
169 | struct i2c_client *client = kobj_to_i2c_client(kobj); | 169 | struct i2c_client *client = kobj_to_i2c_client(kobj); |
170 | 170 | ||