git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
power_supply: bq27x00: fix voltage and current units
[pandora-kernel.git]
/
drivers
/
power
/
bq27x00_battery.c
diff --git
a/drivers/power/bq27x00_battery.c
b/drivers/power/bq27x00_battery.c
index
5d940fa
..
bece33e
100644
(file)
--- 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)
return ret;
}
- return volt;
+ return volt
* 1000
;
}
/*
@@
-156,11
+156,11
@@
static int bq27x00_battery_current(struct bq27x00_device_info *di)
}
if (flags & BQ27000_FLAG_CHGS) {
dev_dbg(di->dev, "negative current!\n");
-
return
-curr;
+
curr =
-curr;
}
}
- return curr;
+ return curr
* 1000
;
}
/*