diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-07-15 14:37:03 -0400 |
---|---|---|
committer | Anton Vorontsov <cbou@mail.ru> | 2007-07-15 14:37:03 -0400 |
commit | 0909fca51346d0ece688532c54d41ebc986aef7f (patch) | |
tree | f5d1192b25eac7e6b691ecc99c8d18543587c9c1 | |
parent | 7b3d54a8c30d2c524889a05d0c1334813d516b93 (diff) |
git-battery vs git-acpi
drivers/w1/slaves/w1_ds2760.c:85: warning: initialization from incompatible pointer type
The ACPI guys changed the bin_attr APIs
(commit 91a6902958f052358899f58683d44e36228d85c2)
Cc: Anton Vorontsov <cbou@mail.ru>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | drivers/w1/slaves/w1_ds2760.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/w1/slaves/w1_ds2760.c b/drivers/w1/slaves/w1_ds2760.c index 15e7f9af3bc3..ed6b0576208c 100644 --- a/drivers/w1/slaves/w1_ds2760.c +++ b/drivers/w1/slaves/w1_ds2760.c | |||
@@ -68,8 +68,9 @@ int w1_ds2760_write(struct device *dev, char *buf, int addr, size_t count) | |||
68 | return w1_ds2760_io(dev, buf, addr, count, 1); | 68 | return w1_ds2760_io(dev, buf, addr, count, 1); |
69 | } | 69 | } |
70 | 70 | ||
71 | static ssize_t w1_ds2760_read_bin(struct kobject *kobj, char *buf, loff_t off, | 71 | static ssize_t w1_ds2760_read_bin(struct kobject *kobj, |
72 | size_t count) | 72 | struct bin_attribute *bin_attr, |
73 | char *buf, loff_t off, size_t count) | ||
73 | { | 74 | { |
74 | struct device *dev = container_of(kobj, struct device, kobj); | 75 | struct device *dev = container_of(kobj, struct device, kobj); |
75 | return w1_ds2760_read(dev, buf, off, count); | 76 | return w1_ds2760_read(dev, buf, off, count); |