projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb414ee
)
rk29_phone:change voltage unit to uV while reporting event
author
root
<root@lw.(none)>
Wed, 21 Sep 2011 11:14:25 +0000
(19:14 +0800)
committer
root
<root@lw.(none)>
Fri, 23 Sep 2011 06:18:25 +0000
(14:18 +0800)
drivers/power/wm831x_power.c
patch
|
blob
|
history
diff --git
a/drivers/power/wm831x_power.c
b/drivers/power/wm831x_power.c
index 8cdb0a3dfc528f019978b2cf3c4c1314d2921048..53946c136eb5dafd6e746acb7fa9e47085e740a1 100755
(executable)
--- a/
drivers/power/wm831x_power.c
+++ b/
drivers/power/wm831x_power.c
@@
-620,7
+620,7
@@
static int wm831x_bat_get_prop(struct power_supply *psy,
break;
case POWER_SUPPLY_PROP_VOLTAGE_NOW:
//ret = wm831x_power_read_voltage(wm831x, WM831X_AUX_BATT, val);
- val->intval = wm831x_power->batt_info.voltage
;
+ val->intval = wm831x_power->batt_info.voltage
*1000;//uV
break;
case POWER_SUPPLY_PROP_HEALTH:
//ret = wm831x_bat_check_health(wm831x, &val->intval);