summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/generic-adc-battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/supply/generic-adc-battery.c')
-rw-r--r--drivers/power/supply/generic-adc-battery.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/power/supply/generic-adc-battery.c b/drivers/power/supply/generic-adc-battery.c
index 97b0e873e..c2d6378bb 100644
--- a/drivers/power/supply/generic-adc-battery.c
+++ b/drivers/power/supply/generic-adc-battery.c
@@ -138,6 +138,9 @@ static int read_channel(struct gab *adc_bat, enum power_supply_property psp,
result);
if (ret < 0)
pr_err("read channel error\n");
+ else
+ *result *= 1000;
+
return ret;
}