(CR):[factory]:[kane]:lk: enter factory mode when press volumeup+power key
authorzhixueyin <zhixueyin@huaqin.com>
Fri, 18 Jan 2019 02:05:49 +0000 (10:05 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:37 +0000 (17:30 +0800)
enter factory mode when press volumeup+power key

Change-Id: I957c5c534b856b6a0f06b25ec23c445c63955c09

drivers/power/supply/s2mu00x_battery.c

index 73a3c2d5bb215c5440cbe71f6522c02b2bdfcc56..f0eac76ecd7aca6434f9713b7fe95406343fe15b 100644 (file)
@@ -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;