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
urubino
Simon1511 10 months ago committed by Ruchit
parent a574beec15
commit b264b5ef9f
  1. 5
      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);

Loading…
Cancel
Save