mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 10:25:20 +00:00
grunt: Rename orange LED to amber
'Amber' seems to be more common in the code base. Rename it for grunt. BUG=b:71902053 BRANCH=none TEST=make BOARD=grunt -j10 Change-Id: I73a6bff4f113f5c49e70fde6d1f4667b8324a6d8 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/896401 Reviewed-by: Edward Hill <ecgh@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
This commit is contained in:
@@ -410,7 +410,7 @@ struct keyboard_scan_config keyscan_config = {
|
||||
/* PWM channels. Must be in the exactly same order as in enum pwm_channel. */
|
||||
const struct pwm_t pwm_channels[] = {
|
||||
[PWM_CH_KBLIGHT] = { 5, 0, 100 },
|
||||
[PWM_CH_LED1_ORANGE] = {
|
||||
[PWM_CH_LED1_AMBER] = {
|
||||
0, PWM_CONFIG_OPEN_DRAIN | PWM_CONFIG_ACTIVE_LOW |
|
||||
PWM_CONFIG_DSLEEP, 100
|
||||
},
|
||||
@@ -616,7 +616,7 @@ static void board_init_leds_off(void)
|
||||
{
|
||||
/* Initialize the LEDs off. */
|
||||
/* TODO(sjg): Eventually do something with these LEDs. */
|
||||
pwm_set_duty(PWM_CH_LED1_ORANGE, 0);
|
||||
pwm_set_duty(PWM_CH_LED1_AMBER, 0);
|
||||
pwm_set_duty(PWM_CH_LED2_BLUE, 0);
|
||||
}
|
||||
DECLARE_HOOK(HOOK_INIT, board_init_leds_off, HOOK_PRIO_INIT_PWM + 1);
|
||||
|
||||
@@ -179,7 +179,7 @@ enum temp_sensor_id {
|
||||
|
||||
enum pwm_channel {
|
||||
PWM_CH_KBLIGHT = 0,
|
||||
PWM_CH_LED1_ORANGE,
|
||||
PWM_CH_LED1_AMBER,
|
||||
PWM_CH_LED2_BLUE,
|
||||
PWM_CH_COUNT
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user