OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c40cd41
)
power: Fix charger check using correct variable
author
wloot
<wlootlxt123@gmail.com>
Fri, 21 Jun 2019 09:33:37 +0000
(17:33 +0800)
committer
Arian
<arian.kulmer@web.de>
Tue, 19 Nov 2019 15:24:39 +0000
(16:24 +0100)
Change-Id: Idd31366758c7482bfb4fa343527058b10cd30e8b
Signed-off-by: wloot <wlootlxt123@gmail.com>
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
drivers/power/supply/qcom/smb-lib.c
patch
|
blob
|
history
diff --git
a/drivers/power/supply/qcom/smb-lib.c
b/drivers/power/supply/qcom/smb-lib.c
index
f013b43
..
33ad681
100644
(file)
--- a/
drivers/power/supply/qcom/smb-lib.c
+++ b/
drivers/power/supply/qcom/smb-lib.c
@@
-2014,7
+2014,7
@@
int smblib_set_prop_system_temp_level(struct smb_charger *chg,
if (chg->system_temp_level == 0)
return vote(chg->usb_icl_votable, THERMAL_DAEMON_VOTER, false, 0);
- switch (chg->
usb_psy_desc.
type) {
+ switch (chg->
real_charger_
type) {
case POWER_SUPPLY_TYPE_USB_HVDCP:
thermal_mitigation = chg->thermal_mitigation_qc2;
break;