--- /dev/null
+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);