summaryrefslogtreecommitdiff
path: root/include/backlight.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-07-11 13:43:13 -0700
committerChromeBot <chrome-bot@google.com>2013-07-11 16:51:39 -0700
commit6696843708b7e5cb83a6c061a76cf70cbfd2523f (patch)
treefd1f1b8948054b74a1da01be9210131c3e03451c /include/backlight.h
parenta26b0dbd747386c841a31144c7fdf07b68ccb811 (diff)
downloadchrome-ec-6696843708b7e5cb83a6c061a76cf70cbfd2523f.tar.gz
Move x86 backlight-enable passthru code to its own module
This code is not LM4-specific, it's x86-specific. So it doesn't belong in chip/lm4. Put it in its own module rather than leaving it in switch.c, since some x86 systems may need the power button state machine but not the backlight-enable passthru. BUG=chrome-os-partner:18343 BRANCH=none TEST=Quickly run a magnet over the lid switch; the backlight goes off and then back on. Change-Id: I72f7139b73f91539dcfbe6b5cb6d56587ab66fde Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/61595 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/backlight.h')
-rw-r--r--include/backlight.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/backlight.h b/include/backlight.h
new file mode 100644
index 0000000000..dd4e06e991
--- /dev/null
+++ b/include/backlight.h
@@ -0,0 +1,20 @@
+/* Copyright (c) 2013 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.
+ */
+
+/* Backlight API for Chrome EC */
+
+#ifndef __CROS_EC_BACKLIGHT_H
+#define __CROS_EC_BACKLIGHT_H
+
+#include "common.h"
+
+/**
+ * Interrupt handler for backlight.
+ *
+ * @param signal Signal which triggered the interrupt.
+ */
+void backlight_interrupt(enum gpio_signal signal);
+
+#endif /* __CROS_EC_BACKLIGHT_H */