summaryrefslogtreecommitdiff
path: root/board/arcada_ish
diff options
context:
space:
mode:
authorAndrew McRae <amcrae@google.com>2022-01-18 13:30:10 +1100
committerCommit Bot <commit-bot@chromium.org>2022-01-20 23:53:39 +0000
commitf4b2abb9423d22e4b9bb1a28c5fa2c7aac7be6da (patch)
tree2a547deeafbfe97230b3e81d55f14d1a9c70193c /board/arcada_ish
parent1b69854af42066ccbe4e584734d288cd9b5e921f (diff)
downloadchrome-ec-f4b2abb9423d22e4b9bb1a28c5fa2c7aac7be6da.tar.gz
ec: Rename GMR_TABLET_MODE_GPIO_L to GPIO_TABLET_MODE_L
Normalise the name of the tablet mode detection GPIO so that everyboard does not need to redefine it. BUG=none TEST=zmake testall; make buildall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Ifb458e755d1e00c0cff66a02c78dfccaba2d070c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3397141 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'board/arcada_ish')
-rw-r--r--board/arcada_ish/board.c2
-rw-r--r--board/arcada_ish/board.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/board/arcada_ish/board.c b/board/arcada_ish/board.c
index d4a8dbddbf..b23784cd38 100644
--- a/board/arcada_ish/board.c
+++ b/board/arcada_ish/board.c
@@ -156,7 +156,7 @@ int board_sensor_at_360(void)
* also active.
*/
return lid_is_open() &&
- !gpio_get_level(GMR_TABLET_MODE_GPIO_L);
+ !gpio_get_level(GPIO_TABLET_MODE_L);
}
/* Initialize board. */
diff --git a/board/arcada_ish/board.h b/board/arcada_ish/board.h
index 0064086619..b48f8fe788 100644
--- a/board/arcada_ish/board.h
+++ b/board/arcada_ish/board.h
@@ -56,7 +56,6 @@
#define CONFIG_TABLET_MODE
#define CONFIG_GMR_TABLET_MODE
#define CONFIG_GMR_TABLET_MODE_CUSTOM
-#define GMR_TABLET_MODE_GPIO_L GPIO_TABLET_MODE_L
/* DMA paging between SRAM and DRAM */
#define CONFIG_DMA_PAGING