summaryrefslogtreecommitdiff
path: root/common/lightbar.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2013-04-26 13:46:18 -0700
committerChromeBot <chrome-bot@google.com>2013-04-26 16:07:21 -0700
commitdf06f61cccd415e3d20d187b3438bd565b81c9c3 (patch)
tree727e1eaf76fac857ba74b41dfea5e1573daad457 /common/lightbar.c
parent8bc24ec311d8c17cd543aa959847ad9a57438ce9 (diff)
downloadchrome-ec-df06f61cccd415e3d20d187b3438bd565b81c9c3.tar.gz
Split pwm.c into pwm_fan.c and pwm_kblight.c
Sadly, the existence of fans may not always imply the existence of keyboard backlights. BUG=chrome-os-partner:18825 BRANCH=slippy TEST=manual Use the Link EC console to make sure that both functions still behave. faninfo fanset 4400 faninfo fanset 9999 faninfo autofan faninfo fanduty 50 faninfo fanduty 100 faninfo autofan kblight 0 kblight 100 kblight 50 kbligth 100 Change-Id: I2e07cd46c21bce2d0d4162275a8ea6ae40135e96 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/49355
Diffstat (limited to 'common/lightbar.c')
-rw-r--r--common/lightbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/lightbar.c b/common/lightbar.c
index 2a8bdf2478..f729318c16 100644
--- a/common/lightbar.c
+++ b/common/lightbar.c
@@ -253,7 +253,7 @@ static void lb_restore_state(void)
* state by calling the demo_* functions directly. */
/******************************************************************************/
-#ifdef CONFIG_PWM
+#ifdef CONFIG_PWM_KBLIGHT
static int last_backlight_level;
#endif
@@ -289,7 +289,7 @@ static void get_battery_level(void)
st.battery_level = bl;
-#ifdef CONFIG_PWM
+#ifdef CONFIG_PWM_KBLIGHT
/* With nothing else to go on, use the keyboard backlight level to
* set the brightness. If the keyboard backlight is OFF (which it is
* when ambient is bright), use max brightness for lightbar. If