summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-12-17 09:15:52 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-12-17 21:27:46 +0000
commit54b5c71f0d61d761b2b41635f0d5c13bc1a3445c (patch)
treef006194db3b50a5a5f0598953e9e90f97c08c2d5
parenta905b84fd1264d826b8e724839f52925a38f5926 (diff)
downloadchrome-ec-54b5c71f0d61d761b2b41635f0d5c13bc1a3445c.tar.gz
cleanup: Fix the last few mixed-case BOARD_ macros
All macros are now uppercase. BUG=chromium:322144 BRANCH=none TEST=Build all boards. Also, "git grep 'BOARD_[a-z]'" should return no results (similarly for CHIP, CORE, TEST, CHIP_FAMILY, CHIP_VARIANT.) Change-Id: I04850e569b3950bb88f9dff107de06dfa49b04fc Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/180430 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
-rw-r--r--common/lightbar.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/lightbar.c b/common/lightbar.c
index 04e6482db4..847da1b003 100644
--- a/common/lightbar.c
+++ b/common/lightbar.c
@@ -59,7 +59,7 @@ static inline uint8_t controller_read(int ctrl_num, uint8_t reg)
* them identically for our purposes */
/******************************************************************************/
-#ifdef BOARD_bds
+#ifdef BOARD_BDS
/* We need to limit the total current per ISC to no more than 20mA (5mA per
* color LED, but we have four LEDs in parallel on each ISC). Any more than
* that runs the risk of damaging the LED component. A value of 0x67 is as high
@@ -71,13 +71,13 @@ static inline uint8_t controller_read(int ctrl_num, uint8_t reg)
#define MAX_GREEN 0x30
#define MAX_BLUE 0x67
#endif
-#ifdef BOARD_link
+#ifdef BOARD_LINK
/* Link uses seven segments, not four, but keep the same limits anyway */
#define MAX_RED 0x5c
#define MAX_GREEN 0x30
#define MAX_BLUE 0x67
#endif
-#ifdef BOARD_samus
+#ifdef BOARD_SAMUS
/* Samus uses completely different LEDs, so the numbers are different */
#define MAX_RED 0x4f
#define MAX_GREEN 0x55
@@ -123,13 +123,13 @@ static void set_from_array(const struct initdata_s *data, int count)
/* Controller register lookup tables. */
static const uint8_t led_to_ctrl[] = { 1, 1, 0, 0 };
-#ifdef BOARD_bds
+#ifdef BOARD_BDS
static const uint8_t led_to_isc[] = { 0x18, 0x15, 0x18, 0x15 };
#endif
-#ifdef BOARD_link
+#ifdef BOARD_LINK
static const uint8_t led_to_isc[] = { 0x18, 0x15, 0x18, 0x15 };
#endif
-#ifdef BOARD_samus
+#ifdef BOARD_SAMUS
static const uint8_t led_to_isc[] = { 0x15, 0x18, 0x15, 0x18 };
#endif