diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/bq27x00_battery.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c index 5d940fad8d43..bece33ed873c 100644 --- a/drivers/power/bq27x00_battery.c +++ b/drivers/power/bq27x00_battery.c | |||
@@ -125,7 +125,7 @@ static int bq27x00_battery_voltage(struct bq27x00_device_info *di) | |||
125 | return ret; | 125 | return ret; |
126 | } | 126 | } |
127 | 127 | ||
128 | return volt; | 128 | return volt * 1000; |
129 | } | 129 | } |
130 | 130 | ||
131 | /* | 131 | /* |
@@ -156,11 +156,11 @@ static int bq27x00_battery_current(struct bq27x00_device_info *di) | |||
156 | } | 156 | } |
157 | if (flags & BQ27000_FLAG_CHGS) { | 157 | if (flags & BQ27000_FLAG_CHGS) { |
158 | dev_dbg(di->dev, "negative current!\n"); | 158 | dev_dbg(di->dev, "negative current!\n"); |
159 | return -curr; | 159 | curr = -curr; |
160 | } | 160 | } |
161 | } | 161 | } |
162 | 162 | ||
163 | return curr; | 163 | return curr * 1000; |
164 | } | 164 | } |
165 | 165 | ||
166 | /* | 166 | /* |