[PATCH] w1_ds2760: Fix binary file read callback signature
From: Jean Delvare
Date: Fri Jul 13 2007 - 05:26:24 EST
Commit 91a6902958f052358899f58683d44e36228d85c2 changed the binary
sysfs file signatures at the same time the w1_ds2760 driver was added.
Signed-off-by: Jean Delvare <khali@xxxxxxxxxxxx>
---
drivers/w1/slaves/w1_ds2760.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- linux-2.6.23-pre.orig/drivers/w1/slaves/w1_ds2760.c 2007-07-13 09:46:35.000000000 +0200
+++ linux-2.6.23-pre/drivers/w1/slaves/w1_ds2760.c 2007-07-13 11:11:38.000000000 +0200
@@ -68,8 +68,9 @@ int w1_ds2760_write(struct device *dev,
return w1_ds2760_io(dev, buf, addr, count, 1);
}
-static ssize_t w1_ds2760_read_bin(struct kobject *kobj, char *buf, loff_t off,
- size_t count)
+static ssize_t w1_ds2760_read_bin(struct kobject *kobj,
+ struct bin_attribute *bin_attr,
+ char *buf, loff_t off, size_t count)
{
struct device *dev = container_of(kobj, struct device, kobj);
return w1_ds2760_read(dev, buf, off, count);
--
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/