summaryrefslogtreecommitdiff
path: root/board/kano/led.c
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2021-09-20 14:33:24 +0000
committerCommit Bot <commit-bot@chromium.org>2021-09-21 09:33:00 +0000
commitad3c72d45cbfea3f5c8150a1a39625c99d82f784 (patch)
treec7a8f09c9e6360912edbe76b7276c3a6c5e3777d /board/kano/led.c
parentd8e0677d61d059e6c80db0e526de495b7d94a22b (diff)
downloadchrome-ec-ad3c72d45cbfea3f5c8150a1a39625c99d82f784.tar.gz
led_pwm: split color map on a separate structure
Currently color map is reusing the same structure as the channel and callback selection, which is a bit wasteful and somewhat confusing. Split it to its own struct with just three uint8_t fields. BRANCH=none BUG=none TEST=build only Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I56992fa9525db46980e450eb6569ba8291987b9b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3168864 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Yuval Peress <peress@google.com>
Diffstat (limited to 'board/kano/led.c')
-rw-r--r--board/kano/led.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/kano/led.c b/board/kano/led.c
index 936a02503b..ab1021b845 100644
--- a/board/kano/led.c
+++ b/board/kano/led.c
@@ -29,7 +29,7 @@ const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids);
* We only have a white and an amber LED, so setting any other color results in
* both LEDs being off.
*/
-struct pwm_led led_color_map[EC_LED_COLOR_COUNT] = {
+struct pwm_led_color_map led_color_map[EC_LED_COLOR_COUNT] = {
/* Amber, White */
[EC_LED_COLOR_RED] = { 0, 0 },
[EC_LED_COLOR_GREEN] = { 0, 0 },