From 32e863297dc007901048f875f29b291d5213a207 Mon Sep 17 00:00:00 2001 From: Keunho Hwang Date: Tue, 15 May 2018 11:02:48 +0900 Subject: [PATCH] Revert "[HACK] [9610] driver: turn on charger always if notifier is not enabled" This reverts commit 85f6fd13cf1adaa9420104d6ec297ed9a9499f5c. Change-Id: I3f6edc0ad855a08c9bdd9d9c14b0c0f4814c661a Signed-off-by: Keunho Hwang --- drivers/power/supply/s2mu00x_battery.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/power/supply/s2mu00x_battery.c b/drivers/power/supply/s2mu00x_battery.c index 22fd77a7e7e1..bc0350226595 100644 --- a/drivers/power/supply/s2mu00x_battery.c +++ b/drivers/power/supply/s2mu00x_battery.c @@ -1430,16 +1430,6 @@ static int s2mu00x_battery_probe(struct platform_device *pdev) MUIC_NOTIFY_DEV_CHARGER); #endif -#if !defined(CONFIG_MUIC_NOTIFIER) && !defined(CONFIG_IFCONN_NOTIFIER) - /* If notifier is not enabled, turn on charger always - * limit input/charging current 500mA to protect device - */ - battery->cable_type = POWER_SUPPLY_TYPE_MAINS; - battery->pdata->charging_current[battery->cable_type].input_current_limit = 500; - battery->pdata->charging_current[battery->cable_type].fast_charging_current = 500; - set_bat_status_by_cable(battery); -#endif - /* Kick off monitoring thread */ pr_info("%s: start battery monitoring work\n", __func__); queue_delayed_work(battery->monitor_wqueue, &battery->monitor_work, 5*HZ); -- 2.20.1