diff options
author | Vic Yang <victoryang@chromium.org> | 2013-04-23 20:28:15 +0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-04-23 10:39:10 -0700 |
commit | 4d96bf649de38e989016fd9a467ab243ace436f7 (patch) | |
tree | 651c154680b6452fb1636db9acb5b39afaffa663 /common/lid_switch.c | |
parent | 2dd01e59eac4a25164bc4c3a76280a57a7fca6c7 (diff) | |
download | chrome-ec-4d96bf649de38e989016fd9a467ab243ace436f7.tar.gz |
Unify lid switch GPIO name
Link uses LID_SWITCH_L but it means the same thing as LID_OPEN. Changing
it to LID_OPEN so that all boards use the same name.
No functional changes, just renaming.
BUG=chrome-os-partner:18343
TEST=build link, bds
BRANCH=none
Change-Id: I74893e1365ad3068f13e7fe948f1a54c6c6301bb
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/48893
Reviewed-by: Randall Spangler <rspangler@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 b866bad0f7..0f83f7c318 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_SWITCH_L) ? 1 : 0; + return gpio_get_level(GPIO_LID_OPEN) ? 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_SWITCH_L); + gpio_enable_interrupt(GPIO_LID_OPEN); } DECLARE_HOOK(HOOK_INIT, lid_init, HOOK_PRIO_INIT_LID); |