1 From: Jeff Mahoney <jeffm@suse.com>
2 Subject: [PATCH] ds1682: compile fix
4 I'm not sure this should go to mainline. It fixes the linkage, but I'm
5 pretty sure it's due to a section conflict.
7 The failure was that ds1682_{show,store} were undefined at link time.
9 Signed-off-by: Jeff Mahoney <jeffm@suse.com>
12 drivers/i2c/chips/ds1682.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
15 --- a/drivers/i2c/chips/ds1682.c
16 +++ b/drivers/i2c/chips/ds1682.c
19 * Generic counter attributes
21 -static ssize_t ds1682_show(struct device *dev, struct device_attribute *attr,
22 +ssize_t ds1682_show(struct device *dev, struct device_attribute *attr,
25 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr);
26 @@ -82,7 +82,7 @@ static ssize_t ds1682_show(struct device
27 return sprintf(buf, "%li\n", (long)le32_to_cpu(val));
30 -static ssize_t ds1682_store(struct device *dev, struct device_attribute *attr,
31 +ssize_t ds1682_store(struct device *dev, struct device_attribute *attr,
32 const char *buf, size_t count)
34 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr);