summaryrefslogtreecommitdiff
path: root/include/power_button.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-10-29 14:13:36 -0700
committerGerrit <chrome-bot@google.com>2012-10-30 14:50:03 -0700
commita21ea56e76ff71849d45f59608c0beb7bede4c02 (patch)
treed8e3bd5d57920878f9603cf4c3fee7b39b371188 /include/power_button.h
parent80467aff915c638b1c3f96a51becffd493791962 (diff)
downloadchrome-ec-a21ea56e76ff71849d45f59608c0beb7bede4c02.tar.gz
Rename power_button module to switch
Since it handles not just power button, but also lid switch, AC detect, and other switches. No functional changes; just renaming. BUG=chrome-os-partner:15579 BRANCH=none TEST=boot system, power on/off with power button Change-Id: I51628a52293f7207715f5f6bf368a08fe6c3dbce Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/36821
Diffstat (limited to 'include/power_button.h')
-rw-r--r--include/power_button.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/include/power_button.h b/include/power_button.h
deleted file mode 100644
index 12919acf7b..0000000000
--- a/include/power_button.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/* Power button module for Chrome EC */
-
-#ifndef __CROS_EC_POWER_BUTTON_H
-#define __CROS_EC_POWER_BUTTON_H
-
-#include "common.h"
-#include "gpio.h"
-
-/**
- * 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.
- */
-void power_button_task(void);
-
-/**
- * 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.
- */
-int power_lid_open_debounced(void);
-
-/**
- * Return non-zero if write protect signal is asserted.
- */
-int write_protect_asserted(void);
-
-#endif /* __CROS_EC_POWER_BUTTON_H */