summaryrefslogtreecommitdiff
path: root/board/gimble/sensors.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/gimble/sensors.c')
-rw-r--r--board/gimble/sensors.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/board/gimble/sensors.c b/board/gimble/sensors.c
index 2931e68d31..500cd580d6 100644
--- a/board/gimble/sensors.c
+++ b/board/gimble/sensors.c
@@ -222,22 +222,3 @@ struct ec_thermal_config thermal_params[] = {
[TEMP_SENSOR_3_CHARGER] = thermal_inductor,
};
BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT);
-
-#ifndef TEST_BUILD
-void lid_angle_peripheral_enable(int enable)
-{
- int chipset_in_s0 = chipset_in_state(CHIPSET_STATE_ON);
-
- if (enable) {
- keyboard_scan_enable(1, KB_SCAN_DISABLE_LID_ANGLE);
- } else {
- /*
- * Ensure that the chipset is off before disabling the keyboard.
- * When the chipset is on, the EC keeps the keyboard enabled and
- * the AP decides whether to ignore input devices or not.
- */
- if (!chipset_in_s0)
- keyboard_scan_enable(0, KB_SCAN_DISABLE_LID_ANGLE);
- }
-}
-#endif