From 9e0cd7b1628d9185be8020203dbe6ced5d6c6f78 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Fri, 9 May 2014 17:27:38 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/199241 Reviewed-by: Alec Berg --- board/samus/board.h | 3 --- board/samus/panel.c | 2 ++ 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 -- cgit v1.2.1