summaryrefslogtreecommitdiff
path: root/board/wheelie
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/wheelie
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/wheelie')
-rw-r--r--board/wheelie/led.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/wheelie/led.c b/board/wheelie/led.c
index 8c65f54568..9524a68a84 100644
--- a/board/wheelie/led.c
+++ b/board/wheelie/led.c
@@ -19,7 +19,7 @@ const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids);
/*
* Board has one physical LED with red, green, and blue
*/
-struct pwm_led led_color_map[EC_LED_COLOR_COUNT] = {
+struct pwm_led_color_map led_color_map[EC_LED_COLOR_COUNT] = {
/* Red, Green, Blue */
[EC_LED_COLOR_RED] = { 100, 0, 0 },
[EC_LED_COLOR_GREEN] = { 0, 100, 0 },