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:
14fff74
)
no battery temp is 25.8
author
lhh
<lhh@rock-chips.com>
Fri, 24 Dec 2010 03:33:00 +0000
(11:33 +0800)
committer
lhh
<lhh@rock-chips.com>
Fri, 24 Dec 2010 03:33:00 +0000
(11:33 +0800)
drivers/power/bq27510_battery.c
patch
|
blob
|
history
diff --git
a/drivers/power/bq27510_battery.c
b/drivers/power/bq27510_battery.c
index 6ab0df6e8bc04bef7929d085ed7c06284a69c9e1..02abbb5d7b8ff70674c7ff0bbd136ad55a9d22fe 100644
(file)
--- a/
drivers/power/bq27510_battery.c
+++ b/
drivers/power/bq27510_battery.c
@@
-114,6
+114,9
@@
static int bq27510_battery_temperature(struct bq27510_device_info *di)
}
temp = get_unaligned_le16(buf);
temp = temp - 2731;
+ #if CONFIG_NO_BATTERY_IC
+ temp = 258;
+ #endif
DBG("Enter:%s %d--temp = %d\n",__FUNCTION__,__LINE__,temp);
return temp;
}