summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-02-01 08:20:24 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-02-01 18:08:40 -0800
commitc23e632984dbd97a91cc2d8434a8849024627d43 (patch)
tree71d0ada27bc6a8486f649bf20635de1504ac6b93
parente127855f27ace32faa948ee8ab052ccb98e42dd6 (diff)
downloadchrome-ec-c23e632984dbd97a91cc2d8434a8849024627d43.tar.gz
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>
-rw-r--r--board/grunt/board.c4
-rw-r--r--board/grunt/board.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/board/grunt/board.c b/board/grunt/board.c
index b2c608f3f0..a5ad367919 100644
--- a/board/grunt/board.c
+++ b/board/grunt/board.c
@@ -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);
diff --git a/board/grunt/board.h b/board/grunt/board.h
index c8922770c8..fb3e4e47c0 100644
--- a/board/grunt/board.h
+++ b/board/grunt/board.h
@@ -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
};