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: I083a8371cc82c2ac9bce88bcc183dfee0975cf20
This commit is contained in:
Simon1511
2023-11-25 00:17:00 +01:00
committed by Haky86
parent 476422ae6c
commit 61d07c8220

View File

@@ -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);