Skip to content

Commit

Permalink
ds2781_battery: w1_ds2781_read() should be static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anton Vorontsov committed Jun 18, 2012
1 parent 92311c3 commit 7dbae55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/ds2781_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7dbae55

Please sign in to comment.