mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 10:45:22 +00:00
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>
21 lines
484 B
C
21 lines
484 B
C
/* 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 */
|