diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-04-19 16:28:49 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-04-22 16:44:37 -0700 |
commit | 57b77a3a8f2748b8a11d74a71d043f8cd61311db (patch) | |
tree | 2d73819c80f6d0d3b1b91985ea24c48452d59be7 /common/lid_switch.c | |
parent | dcb2425f45ce69b149e19467ed412842f440894a (diff) | |
download | chrome-ec-57b77a3a8f2748b8a11d74a71d043f8cd61311db.tar.gz |
Active-low Link GPIOs end with _L, not n.
This is now consistent with other boards.
No functional changes, just renaming,
BUG=chrome-os-partner:18343
BRANCH=none
TEST=build link, bds
Change-Id: Ifd7c1ec608ab61f5f66800e91803ffafe1d944b6
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/48804
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'common/lid_switch.c')
-rw-r--r-- | common/lid_switch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/lid_switch.c b/common/lid_switch.c index 68c049e52c..b866bad0f7 100644 --- a/common/lid_switch.c +++ b/common/lid_switch.c @@ -28,7 +28,7 @@ static int debounced_lid_open; /* Debounced lid state */ */ static int raw_lid_open(void) { - return gpio_get_level(GPIO_LID_SWITCHn) ? 1 : 0; + return gpio_get_level(GPIO_LID_SWITCH_L) ? 1 : 0; } /** @@ -77,7 +77,7 @@ static void lid_init(void) debounced_lid_open = 1; /* Enable interrupts, now that we've initialized */ - gpio_enable_interrupt(GPIO_LID_SWITCHn); + gpio_enable_interrupt(GPIO_LID_SWITCH_L); } DECLARE_HOOK(HOOK_INIT, lid_init, HOOK_PRIO_INIT_LID); |