diff options
author | Diana Z <dzigterman@chromium.org> | 2021-04-16 15:18:28 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-23 15:49:38 +0000 |
commit | 33fa1073fd5d944f5199bfcccc5a6fc9a782739a (patch) | |
tree | df276ededdaa6f9febe2455533d217bd7882d716 /include/led_onoff_states.h | |
parent | 964b2d90ffc87a2366a0d2e436bef65ed2dcc84f (diff) | |
download | chrome-ec-33fa1073fd5d944f5199bfcccc5a6fc9a782739a.tar.gz |
LED On/Off: Add state for off with insufficient power
Add a common state to communicate that we're off due to insufficient
power. If not defined, allow this state to fall back to OFF since many
systems with batteries will be using the battery LED to communicate this
information.
BRANCH=None
BUG=b:185508707
TEST=on boten, confirm no regressions with fake low battery in S5
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ie8b37785a43fdfdd6619fe72c8bd7e2be6776e43
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2832694
Reviewed-by: Rob Barnes <robbarnes@google.com>
Commit-Queue: Rob Barnes <robbarnes@google.com>
Diffstat (limited to 'include/led_onoff_states.h')
-rw-r--r-- | include/led_onoff_states.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/led_onoff_states.h b/include/led_onoff_states.h index baae0ca567..7eb8b312f7 100644 --- a/include/led_onoff_states.h +++ b/include/led_onoff_states.h @@ -58,6 +58,7 @@ enum pwr_led_states { PWR_LED_STATE_SUSPEND_AC, PWR_LED_STATE_SUSPEND_NO_AC, PWR_LED_STATE_OFF, + PWR_LED_STATE_OFF_LOW_POWER, /* Falls back to OFF if not defined */ PWR_LED_NUM_STATES }; |