From 86c0427b9a1831792da43685c69e15795a58ff18 Mon Sep 17 00:00:00 2001 From: Simon1511 Date: Sun, 6 Aug 2023 14:54:52 +0200 Subject: [PATCH] sm7125: battery: common: remove sec_vote calls * They aren't neccessary for starting/stopping charging using batt_slate_mode and break the flashlight when slate mode is enabled Change-Id: I0c1fe742b3c3b0d006d5d7c840e6622cfede35c1 --- drivers/battery/common/sec_battery_sysfs.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/battery/common/sec_battery_sysfs.c b/drivers/battery/common/sec_battery_sysfs.c index 5a32d37ff334..d2f0e09fcadb 100755 --- a/drivers/battery/common/sec_battery_sysfs.c +++ b/drivers/battery/common/sec_battery_sysfs.c @@ -1893,17 +1893,12 @@ ssize_t sec_bat_store_attrs( sec_bat_set_current_event(battery, SEC_BAT_CURRENT_EVENT_SLATE, SEC_BAT_CURRENT_EVENT_SLATE); - sec_vote(battery->chgen_vote, VOTER_SLATE, - true, - SEC_BAT_CHG_MODE_BUCK_OFF); dev_info(battery->dev, "%s: enable slate mode : %d\n", __func__, x); } else if (x == 0) { sec_bat_set_current_event(battery, 0, SEC_BAT_CURRENT_EVENT_SLATE); - sec_vote(battery->chgen_vote, VOTER_SLATE, - false, 0); dev_info(battery->dev, "%s: disable slate mode : %d\n", __func__, x);