From 309b3f2db1a095e351b9c8e51f482c1e3c261295 Mon Sep 17 00:00:00 2001 From: Greg Meiste Date: Tue, 29 Jun 2010 09:20:16 -0500 Subject: [PATCH] w1: slaves: ds2781: Fix warning introduced by K35 On K35, the bin_attribute structure was changed, causing a build warning in the DS2781 w1 slave driver. Thsi patch fixes the warning and the likely runtime error that would occur if something was to try to read from the property. Change-Id: I3a6ea8190a9f7e8ae8b85b25f79faa0574acc474 Signed-off-by: Greg Meiste --- drivers/w1/slaves/w1_ds2781.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/w1/slaves/w1_ds2781.c b/drivers/w1/slaves/w1_ds2781.c index f1ae5cf85bad..e50341f07244 100644 --- a/drivers/w1/slaves/w1_ds2781.c +++ b/drivers/w1/slaves/w1_ds2781.c @@ -73,7 +73,7 @@ int w1_ds2781_write(struct device *dev, char *buf, int addr, size_t count) return w1_ds2781_io(dev, buf, addr, count, 1); } EXPORT_SYMBOL(w1_ds2781_write); -static ssize_t w1_ds2781_read_bin(struct kobject *kobj, +static ssize_t w1_ds2781_read_bin(struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) { -- 2.34.1