power: Set charge_control_limit writable

Thermal Engine uses the charge_control_limit to trigger
the charge mitigation, so set it to be writable.

Mot-CRs-fixed: (CR)

Change-Id: Ie529b0969c46afcfb190c5524fe862059522385c
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1353035
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1355886
This commit is contained in:
Yonghua Yan 2019-05-13 16:11:01 +08:00
commit 9e4148ece0

View file

@ -3150,6 +3150,7 @@ static int batt_prop_is_writeable(struct power_supply *psy,
case POWER_SUPPLY_PROP_SW_JEITA_ENABLED:
case POWER_SUPPLY_PROP_DIE_HEALTH:
case POWER_SUPPLY_PROP_CYCLE_COUNT:
case POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT:
return 1;
default:
break;