ds2781_battery: w1_ds2781_read() should be static
authorAnton Vorontsov <cbouatmailru@gmail.com>
Mon, 18 Jun 2012 04:20:05 +0000 (21:20 -0700)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Mon, 18 Jun 2012 04:24:00 +0000 (21:24 -0700)
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>
drivers/power/ds2781_battery.c

index 975684a40f1519ad33e5f630ecfa82020d71d960..0e87e54b4ab13420944577a6679d87c4f72846fa 100644 (file)
@@ -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);