diff options
author | Anton Vorontsov <cbouatmailru@gmail.com> | 2012-06-18 00:20:05 -0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2012-06-18 00:24:00 -0400 |
commit | 7dbae5562e86f2731d13bd2b8b3ea3f974f4b87d (patch) | |
tree | 795ea6927807f2be6e17519f08ecbcb5cc405d24 /drivers/power/ds2781_battery.c | |
parent | 92311c3c70f9b7f1b7860c2fc2ada09b4d43bfea (diff) |
ds2781_battery: w1_ds2781_read() should be static
This patch fixes the following sparse warning:
CHECK drivers/power/ds2781_battery.c
drivers/power/ds2781_battery.c:72:5: warning: symbol 'w1_ds2781_read' was not declared. Should it be static?
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power/ds2781_battery.c')
-rw-r--r-- | drivers/power/ds2781_battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/ds2781_battery.c b/drivers/power/ds2781_battery.c index 975684a40f15..0e87e54b4ab1 100644 --- a/drivers/power/ds2781_battery.c +++ b/drivers/power/ds2781_battery.c | |||
@@ -69,7 +69,7 @@ static inline int ds2781_battery_io(struct ds2781_device_info *dev_info, | |||
69 | return w1_ds2781_io(dev_info->w1_dev, buf, addr, count, io); | 69 | return w1_ds2781_io(dev_info->w1_dev, buf, addr, count, io); |
70 | } | 70 | } |
71 | 71 | ||
72 | int w1_ds2781_read(struct ds2781_device_info *dev_info, char *buf, | 72 | static int w1_ds2781_read(struct ds2781_device_info *dev_info, char *buf, |
73 | int addr, size_t count) | 73 | int addr, size_t count) |
74 | { | 74 | { |
75 | return ds2781_battery_io(dev_info, buf, addr, count, 0); | 75 | return ds2781_battery_io(dev_info, buf, addr, count, 0); |