projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad418b4
)
(CR):[factory]:[kane]:lk: enter factory mode when press volumeup+power key
author
zhixueyin
<zhixueyin@huaqin.com>
Mon, 17 Dec 2018 07:48:22 +0000
(15:48 +0800)
committer
xiest1
<xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:11 +0000
(17:30 +0800)
enter factory mode when press volumeup+power key
Change-Id: I49505311d5c8fadfe8969ddd794d00305065677a
drivers/power/supply/s2mu00x_battery.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/power/supply/s2mu00x_battery.c
b/drivers/power/supply/s2mu00x_battery.c
index 09724912d82c0d2ac2c3c3b0fce520805dfa17c6..7bfd0b9615fb2a29cce98d9cdbf86ccab186bb90 100644
(file)
--- a/
drivers/power/supply/s2mu00x_battery.c
+++ b/
drivers/power/supply/s2mu00x_battery.c
@@
-2369,7
+2369,7
@@
static int __init is_poweroff_charging_mode(char *str)
{
if (strncmp("charger", str, 7) == 0)
is_charging_mode = S2MU00X_POWEROFF_CHG_MODE;
- else if (strncmp("
factory", str, 7
) == 0)
+ else if (strncmp("
sfactory", str, 8
) == 0)
is_charging_mode = S2MU00X_FAC_MODE;
else {
is_charging_mode = S2MU00X_NOR_MODE;