i2c/ds1682: Fix binary file callback signatures
PATCH 1/1 i2c/ds1682: Fix binary file callback signatures
Commit 91a6902958f052358899f58683d44e36228d85c2 changed the binary sysfs file signatures at the same time the ds1682 driver was added.
Signed-off-by Jean Delvare <[email protected]>
--- drivers/i2c/chips/ds1682.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/i2c/chips/ds1682.c +6 -4
@@ -140,8 +140,9 @@ static const struct attribute_group ds16/* * User data attribute */ -static ssize_t ds1682_eeprom_read (struct kobject *kobj,char *buf,loff_t off, -size_t count) +static ssize_t ds1682_eeprom_read (struct kobject *kobj, +struct bin_attribute *bin_attr,char *buf, +loff_t off,size_t count) {struct i2c_client *client =kobj_to_i2c_client (kobj);int rc;
@@ -163,8 +164,9 @@ static ssize_t ds1682_eeprom_read(structreturn count; } -static ssize_t ds1682_eeprom_write (struct kobject *kobj,char *buf,loff_t off, -size_t count) +static ssize_t ds1682_eeprom_write (struct kobject *kobj, +struct bin_attribute *bin_attr,char *buf, +loff_t off,size_t count) {struct i2c_client *client =kobj_to_i2c_client (kobj);
Signature · 1 line
Jean Delvare