summaryrefslogtreecommitdiff
path: root/board/volteer
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2021-10-05 21:50:29 +0000
committerCommit Bot <commit-bot@chromium.org>2021-10-06 00:05:09 +0000
commitcd8f949da6bde55f8993640a05a15dc900692364 (patch)
tree1dc77acb69c7a995b15d4a5d1b22f3a5addc06d2 /board/volteer
parent9b17a09cf339aecb77b462fbac2efbc122ca21da (diff)
downloadchrome-ec-cd8f949da6bde55f8993640a05a15dc900692364.tar.gz
zephyr: shim: implement a default led_set_brightness
Implement a default led_set_brightness, should be good enough to replace all existing pwm leds currently defined: atlas, nocturne: 2 leds with independent channels volteer, boldar, trondo: 2 leds with sidesel terrador, todor, waddledee, wheelie: 1 led brya, kano, liara, waddledoo: 2 leds but only amber/white grunt:1 led with only blue/amber BRANCH=none BUG=b:177452529 TEST=build and run on volteer TEST=gdb disassemble/s led_set_brightness Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I24cb10574889ccfbc7c9fddc70ceb81d1e8b2170 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3207147 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'board/volteer')
-rw-r--r--board/volteer/led.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/volteer/led.c b/board/volteer/led.c
index 6b09d5b4a0..e4d52c889f 100644
--- a/board/volteer/led.c
+++ b/board/volteer/led.c
@@ -49,7 +49,6 @@ void led_get_brightness_range(enum ec_led_id led_id, uint8_t *brightness_range)
brightness_range[EC_LED_COLOR_GREEN] = 255;
brightness_range[EC_LED_COLOR_BLUE] = 255;
}
-#endif
int led_set_brightness(enum ec_led_id led_id, const uint8_t *brightness)
{
@@ -79,6 +78,7 @@ int led_set_brightness(enum ec_led_id led_id, const uint8_t *brightness)
return EC_SUCCESS;
}
+#endif
/* Illuminates the LED on the side of the active charging port. If not charging,
* illuminates both LEDs.