w1: slaves: ds2781: Fix warning introduced by K35
authorGreg Meiste <w30289@motorola.com>
Tue, 29 Jun 2010 14:20:16 +0000 (09:20 -0500)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:33:13 +0000 (16:33 -0700)
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 <w30289@motorola.com>
drivers/w1/slaves/w1_ds2781.c

index f1ae5cf85bad69140631b13b812a796295803a44..e50341f072444a15b7b1e99c4de475c724fe6060 100644 (file)
@@ -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)
 {