mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
smart_pen_charger: Add PEN_STAT_CHARGE_DISABLED
Add new pen status : PEN_STAT_CHARGE_DISABLED it means the pen charging was disabled. Change-Id: I784d770f34b1bbe1e8e34bf785810e180924de6d Signed-off-by: xuwt2 <xuwt2@lenovo.com> Reviewed-on: https://gerrit.mot.com/2151778 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
ef103ab40d
commit
81a711a700
1 changed files with 2 additions and 1 deletions
|
|
@ -51,6 +51,7 @@ enum pen_status {
|
|||
PEN_STAT_CHARGING,
|
||||
PEN_STAT_DISCHARGING,
|
||||
PEN_STAT_CHARGE_FULL,
|
||||
PEN_STAT_CHARGE_DISABLED,
|
||||
PEN_STAT_MAX,
|
||||
};
|
||||
|
||||
|
|
@ -73,6 +74,7 @@ static char *pen_status_maps[] = {
|
|||
"charging",
|
||||
"discharging",
|
||||
"charge_full",
|
||||
"charge_disabled",
|
||||
};
|
||||
|
||||
struct pen_mac {
|
||||
|
|
@ -523,7 +525,6 @@ static void pen_charger_handle_event(struct pen_charger *chg, int event)
|
|||
if (chg->pen_psy)
|
||||
sysfs_notify(&chg->pen_psy->dev.parent->kobj, NULL, "pen_soc");
|
||||
break;
|
||||
break;
|
||||
case NOTIFY_EVENT_PEN_MAC:
|
||||
scnprintf(event_string, CHG_SHOW_MAX_SIZE,
|
||||
"POWER_SUPPLY_PEN_MAC=%2x:%2x:%2x:%2x:%2x:%2x",
|
||||
|
|
|
|||
Loading…
Reference in a new issue