]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Jeff Mahoney <jeffm@suse.com> |
2 | Subject: [PATCH] ds1682: compile fix | |
3 | ||
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. | |
6 | ||
7 | The failure was that ds1682_{show,store} were undefined at link time. | |
8 | ||
9 | Signed-off-by: Jeff Mahoney <jeffm@suse.com> | |
10 | --- | |
11 | ||
12 | drivers/i2c/chips/ds1682.c | 4 ++-- | |
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | |
14 | ||
15 | --- a/drivers/i2c/chips/ds1682.c | |
16 | +++ b/drivers/i2c/chips/ds1682.c | |
17 | @@ -56,7 +56,7 @@ | |
18 | /* | |
19 | * Generic counter attributes | |
20 | */ | |
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, | |
23 | char *buf) | |
24 | { | |
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)); | |
28 | } | |
29 | ||
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) | |
33 | { | |
34 | struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); |