diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-10-29 13:51:10 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-10-30 12:00:45 -0700 |
commit | c795ea69ff4930d90e3d0cbdc9a10332e34be2bb (patch) | |
tree | 66d9a9903ca7981a9bc0283d501e38c48945950a /include/power_button.h | |
parent | 927792beae9819c3409813d39451823f40b44e33 (diff) | |
download | chrome-ec-c795ea69ff4930d90e3d0cbdc9a10332e34be2bb.tar.gz |
Clean up power button module
No functional changes
BUG=chrome-os-partner:15579
BRANCH=none
TEST=boot system, power off with power button, power on with power button
Change-Id: I25aa5c527b7b9f9db6f5c539cecb37ac4bc197f8
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36820
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/power_button.h')
-rw-r--r-- | include/power_button.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/include/power_button.h b/include/power_button.h index bc80bfb54c..12919acf7b 100644 --- a/include/power_button.h +++ b/include/power_button.h @@ -11,21 +11,27 @@ #include "common.h" #include "gpio.h" -/* - * Interrupt handler for the power button and lid switch. Passed the signal - * which triggered the interrupt. +/** + * Interrupt handler for the power button and lid switch. + * + * @param signal Signal which triggered the interrupt. */ void power_button_interrupt(enum gpio_signal signal); -/* Power button task */ +/** + * Power button task. + */ void power_button_task(void); -/* Return non-zero if AC power is present. */ +/** + * Return non-zero if AC power is present. + */ int power_ac_present(void); -/* - * Return non-zero if lid is open. Uses the debounced lid state, not the raw - * signal from the GPIO. +/** + * Return non-zero if lid is open. + * + * Uses the debounced lid state, not the raw signal from the GPIO. */ int power_lid_open_debounced(void); |