Skip to contentSkip to conversation

ds2781_battery: w1_ds2781_read() should be static

PATCH New Anton Vorontsov 1 participant 1 message Jun 18, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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?

---
 drivers/power/ds2781_battery.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/ds2781_battery.c +1 -1
index 975684a..0e87e54 100644
@@ -69,7 +69,7 @@ static inline int ds2781_battery_io(struct ds2781_device_info *dev_info,
 		return w1_ds2781_io(dev_info->w1_dev, buf, addr, count, io);
 }
 
-int w1_ds2781_read(struct ds2781_device_info *dev_info, char *buf,
+static int w1_ds2781_read(struct ds2781_device_info *dev_info, char *buf,
 		int addr, size_t count)
 {
 	return ds2781_battery_io(dev_info, buf, addr, count, 0);
Signature · 1 line
1.7.10.4