diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2022-12-21 13:30:05 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-12-23 12:01:02 +0000 |
commit | f541b5df493e24c45d7d57d1f3a884157f3eae81 (patch) | |
tree | 138383c09dba8df2554bf25316361216057b269d /zephyr | |
parent | 3938a2ce1e6c3456a8bcfe2c91ad83bc7e490978 (diff) | |
download | chrome-ec-f541b5df493e24c45d7d57d1f3a884157f3eae81.tar.gz |
zephyr: gpio_id: replace DT_PATH with the node path
There was already a #define with the node path, may as well use it.
BRANCH=none
BUG=none
TEST=cq dry run
TEST=zmake compare-builds -a
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I69cb8d14de3b0b39e72c148797e79ba84d9733cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4116774
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/shim/src/gpio_id.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zephyr/shim/src/gpio_id.c b/zephyr/shim/src/gpio_id.c index e157e2d487..8a3aafd45a 100644 --- a/zephyr/shim/src/gpio_id.c +++ b/zephyr/shim/src/gpio_id.c @@ -35,9 +35,9 @@ __override uint32_t board_get_sku_id(void) if (sizeof(bits) == 0) return (uint32_t)-1; - sku_id = CONVERT_NUMERAL_SYSTEM(DT_STRING_TOKEN(DT_PATH(sku), - system), - bits, ARRAY_SIZE(bits)); + sku_id = CONVERT_NUMERAL_SYSTEM( + DT_STRING_TOKEN(SKU_GPIO_ID_NODE, system), bits, + ARRAY_SIZE(bits)); } return sku_id; @@ -60,7 +60,7 @@ __override int board_get_version(void) return -1; board_version = CONVERT_NUMERAL_SYSTEM( - DT_STRING_TOKEN(DT_PATH(board), system), bits, + DT_STRING_TOKEN(BOARD_GPIO_ID_NODE, system), bits, ARRAY_SIZE(bits)); } |