summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2014-05-09 17:27:38 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-05-12 20:02:31 +0000
commit9e0cd7b1628d9185be8020203dbe6ced5d6c6f78 (patch)
tree3ca30fc03f6d256c0ea0ef62a480e6c0630ad92b
parent479aa8b1bc46190fbef4fbcd2da514fe6a935004 (diff)
downloadchrome-ec-9e0cd7b1628d9185be8020203dbe6ced5d6c6f78.tar.gz
Samus: Move single-use constant into the file that uses it.
There's a constant defined in board/samus/board.h that's only used in board/samus/panel.c. Let's just put it in that file, so it doesn't clutter up the config. BUG=chrome-os-partner:28721 BRANCH=ToT TEST=make buildall Change-Id: I23d61aff16726a11a0408957cd109b49c3bf954c Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/199241 Reviewed-by: Alec Berg <alecaberg@chromium.org>
-rw-r--r--board/samus/board.h3
-rw-r--r--board/samus/panel.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/board/samus/board.h b/board/samus/board.h
index c69ff0959b..d549d58c67 100644
--- a/board/samus/board.h
+++ b/board/samus/board.h
@@ -68,9 +68,6 @@
#define I2C_PORT_LIGHTBAR 1
#define I2C_PORT_THERMAL 5
-/* Backlight I2C device address */
-#define I2C_ADDR_BACKLIGHT ((0x2C << 1) | I2C_FLAG_BIG_ENDIAN)
-
/* 13x8 keyboard scanner uses an entire GPIO bank for row inputs */
#define KB_SCAN_ROW_IRQ LM4_IRQ_GPIOK
#define KB_SCAN_ROW_GPIO LM4_GPIO_K
diff --git a/board/samus/panel.c b/board/samus/panel.c
index c9c9c3f6cb..dacb0bcf3e 100644
--- a/board/samus/panel.c
+++ b/board/samus/panel.c
@@ -12,6 +12,8 @@
#include "i2c.h"
#include "lid_switch.h"
+#define I2C_ADDR_BACKLIGHT ((0x2C << 1) | I2C_FLAG_BIG_ENDIAN)
+
#define LP8555_REG_COMMAND 0x00
#define LP8555_REG_COMMAND_ON 0x01
#define LP8555_REG_CONFIG 0x10