]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.fixes/ds1682-build-fix
Move xen patchset to new version's subdir.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / ds1682-build-fix
diff --git a/src/patches/suse-2.6.27.31/patches.fixes/ds1682-build-fix b/src/patches/suse-2.6.27.31/patches.fixes/ds1682-build-fix
new file mode 100644 (file)
index 0000000..218eea2
--- /dev/null
@@ -0,0 +1,34 @@
+From: Jeff Mahoney <jeffm@suse.com>
+Subject: [PATCH] ds1682: compile fix
+
+ I'm not sure this should go to mainline. It fixes the linkage, but I'm
+ pretty sure it's due to a section conflict.
+
+ The failure was that ds1682_{show,store} were undefined at link time.
+
+Signed-off-by: Jeff Mahoney <jeffm@suse.com>
+---
+
+ drivers/i2c/chips/ds1682.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/i2c/chips/ds1682.c
++++ b/drivers/i2c/chips/ds1682.c
+@@ -56,7 +56,7 @@
+ /*
+  * Generic counter attributes
+  */
+-static ssize_t ds1682_show(struct device *dev, struct device_attribute *attr,
++ssize_t ds1682_show(struct device *dev, struct device_attribute *attr,
+                          char *buf)
+ {
+       struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr);
+@@ -82,7 +82,7 @@ static ssize_t ds1682_show(struct device
+       return sprintf(buf, "%li\n", (long)le32_to_cpu(val));
+ }
+-static ssize_t ds1682_store(struct device *dev, struct device_attribute *attr,
++ssize_t ds1682_store(struct device *dev, struct device_attribute *attr,
+                           const char *buf, size_t count)
+ {
+       struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr);