[PATCH] i2c/ds1682: Fix binary file callback signatures
From: Jean Delvare
Date: Fri Jul 13 2007 - 05:22:38 EST
Commit 91a6902958f052358899f58683d44e36228d85c2 changed the binary
sysfs file signatures at the same time the ds1682 driver was added.
Signed-off-by: Jean Delvare <khali@xxxxxxxxxxxx>
---
drivers/i2c/chips/ds1682.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
--- linux-2.6.23-pre.orig/drivers/i2c/chips/ds1682.c 2007-07-13 09:46:20.000000000 +0200
+++ linux-2.6.23-pre/drivers/i2c/chips/ds1682.c 2007-07-13 11:14:59.000000000 +0200
@@ -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(struct
return 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);
--
Jean Delvare
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/