From 7d492cc84ce5490cc9b311a717316901cc0453ab Mon Sep 17 00:00:00 2001 From: zhixueyin Date: Fri, 18 Jan 2019 10:05:49 +0800 Subject: [PATCH] (CR):[factory]:[kane]:lk: enter factory mode when press volumeup+power key enter factory mode when press volumeup+power key Change-Id: I957c5c534b856b6a0f06b25ec23c445c63955c09 --- drivers/power/supply/s2mu00x_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/s2mu00x_battery.c b/drivers/power/supply/s2mu00x_battery.c index 73a3c2d5bb21..f0eac76ecd7a 100644 --- a/drivers/power/supply/s2mu00x_battery.c +++ b/drivers/power/supply/s2mu00x_battery.c @@ -4673,7 +4673,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("sfactory", str, 8) == 0) + else if (strncmp("factory", str, 7) == 0) is_charging_mode = S2MU00X_FAC_MODE; else { is_charging_mode = S2MU00X_NOR_MODE; -- 2.20.1