diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2021-09-20 14:33:24 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-21 09:33:00 +0000 |
commit | ad3c72d45cbfea3f5c8150a1a39625c99d82f784 (patch) | |
tree | c7a8f09c9e6360912edbe76b7276c3a6c5e3777d /board/waddledee | |
parent | d8e0677d61d059e6c80db0e526de495b7d94a22b (diff) | |
download | chrome-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/waddledee')
-rw-r--r-- | board/waddledee/led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/waddledee/led.c b/board/waddledee/led.c index b19e594fbd..058d23d761 100644 --- a/board/waddledee/led.c +++ b/board/waddledee/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 }, |