summaryrefslogtreecommitdiff
path: root/common/acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/acpi.c')
-rw-r--r--common/acpi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/acpi.c b/common/acpi.c
index f73dfd2db5..d9815100e1 100644
--- a/common/acpi.c
+++ b/common/acpi.c
@@ -11,6 +11,7 @@
#include "host_command.h"
#include "lpc.h"
#include "ec_commands.h"
+#include "tablet_mode.h"
#include "pwm.h"
#include "timer.h"
#include "util.h"
@@ -170,7 +171,7 @@ int acpi_ap_to_ec(int is_cmd, uint8_t value, uint8_t *resultptr)
#ifdef CONFIG_DPTF_DEVICE_ORIENTATION
case EC_ACPI_MEM_DEVICE_ORIENTATION:
- result = board_get_device_orientation();
+ result = tablet_get_mode();
break;
#endif