diff options
author | Bill Richardson <wfrichar@chromium.org> | 2014-05-09 17:27:38 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-05-12 20:02:31 +0000 |
commit | 9e0cd7b1628d9185be8020203dbe6ced5d6c6f78 (patch) | |
tree | 3ca30fc03f6d256c0ea0ef62a480e6c0630ad92b /board/samus/panel.c | |
parent | 479aa8b1bc46190fbef4fbcd2da514fe6a935004 (diff) | |
download | chrome-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>
Diffstat (limited to 'board/samus/panel.c')
-rw-r--r-- | board/samus/panel.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |