]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.fixes/ds1682-build-fix
Imported linux-2.6.27.39 suse/xen patches.
[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
deleted file mode 100644 (file)
index 218eea2..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-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);