diff options
author | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-03-26 12:18:33 -0400 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-03-26 12:41:26 -0400 |
commit | 5ae2b822e4dc2219e9544fec3be53de699ea0f56 (patch) | |
tree | f56477bb9948d15853db678b0f447a6632d94270 /drivers/power | |
parent | 6e0e60cd0d688d0d1af85ef2abb8e363595af988 (diff) |
ab8500_fg: Fix some build warnings on x86_64
Noticed the following warnings:
CC drivers/power/ab8500_fg.o
drivers/power/ab8500_fg.c: In function 'charge_full_store':
drivers/power/ab8500_fg.c:2258:2: warning: format '%d' expects argument of type 'int', but argument 4 has type 'ssize_t' [-Wformat]
drivers/power/ab8500_fg.c: In function ‘charge_now_store’:
drivers/power/ab8500_fg.c:2280:2: warning: format '%d' expects argument of type 'int', but argument 4 has type 'ssize_t' [-Wformat]
This patch fixes the issues.
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/ab8500_fg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c index eaf149ecb74b..c22f2f05657e 100644 --- a/drivers/power/ab8500_fg.c +++ b/drivers/power/ab8500_fg.c | |||
@@ -2255,7 +2255,7 @@ static ssize_t charge_full_store(struct ab8500_fg *di, const char *buf, | |||
2255 | 2255 | ||
2256 | ret = strict_strtoul(buf, 10, &charge_full); | 2256 | ret = strict_strtoul(buf, 10, &charge_full); |
2257 | 2257 | ||
2258 | dev_dbg(di->dev, "Ret %d charge_full %lu", ret, charge_full); | 2258 | dev_dbg(di->dev, "Ret %zd charge_full %lu", ret, charge_full); |
2259 | 2259 | ||
2260 | if (!ret) { | 2260 | if (!ret) { |
2261 | di->bat_cap.max_mah = (int) charge_full; | 2261 | di->bat_cap.max_mah = (int) charge_full; |
@@ -2277,7 +2277,7 @@ static ssize_t charge_now_store(struct ab8500_fg *di, const char *buf, | |||
2277 | 2277 | ||
2278 | ret = strict_strtoul(buf, 10, &charge_now); | 2278 | ret = strict_strtoul(buf, 10, &charge_now); |
2279 | 2279 | ||
2280 | dev_dbg(di->dev, "Ret %d charge_now %lu was %d", | 2280 | dev_dbg(di->dev, "Ret %zd charge_now %lu was %d", |
2281 | ret, charge_now, di->bat_cap.prev_mah); | 2281 | ret, charge_now, di->bat_cap.prev_mah); |
2282 | 2282 | ||
2283 | if (!ret) { | 2283 | if (!ret) { |