diff options
author | Andrew McRae <amcrae@google.com> | 2022-01-27 17:09:06 +1100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-27 15:12:25 +0000 |
commit | 43bdaced08659dcfc39ee36a33bc1d0c66af9c28 (patch) | |
tree | 1825eaac4bb49ffdc6a9eb5f95b472cc5a4ea492 /zephyr/shim/include/gpio/gpio_int.h | |
parent | f2eac5c9f441bad4d21ae52072619af5564ff569 (diff) | |
download | chrome-ec-43bdaced08659dcfc39ee36a33bc1d0c66af9c28.tar.gz |
zephyr: Normalise GPIO_INT_FROM_NODE name
Match macro name similar to GPIO_INT_FROM_NODELABEL.
BUG=b:214608987
TEST=zmake testall
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Ida289519fcaa3534964fb4e1577533b3086eab38
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3419428
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Diffstat (limited to 'zephyr/shim/include/gpio/gpio_int.h')
-rw-r--r-- | zephyr/shim/include/gpio/gpio_int.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zephyr/shim/include/gpio/gpio_int.h b/zephyr/shim/include/gpio/gpio_int.h index 37420f559d..7fc18b11e7 100644 --- a/zephyr/shim/include/gpio/gpio_int.h +++ b/zephyr/shim/include/gpio/gpio_int.h @@ -18,13 +18,13 @@ /* * Creates an internal name for the interrupt config block. */ -#define GPIO_NODE_TO_INTERRUPT(id) DT_CAT(gpio_interrupt_, id) +#define GPIO_INT_FROM_NODE(id) DT_CAT(gpio_interrupt_, id) /* * Maps nodelabel of interrupt node to internal configuration block. */ #define GPIO_INT_FROM_NODELABEL(lbl) \ - (&GPIO_NODE_TO_INTERRUPT(DT_NODELABEL(lbl))) + (&GPIO_INT_FROM_NODE(DT_NODELABEL(lbl))) /* * Forward reference to avoiding exposing internal structure @@ -52,7 +52,7 @@ int gpio_disable_dt_interrupt(struct gpio_int_config *zc); * Declare interrupt configuration data structures. */ #define GPIO_INT_DECLARE(id) \ - extern struct gpio_int_config GPIO_NODE_TO_INTERRUPT(id); + extern struct gpio_int_config GPIO_INT_FROM_NODE(id); #if DT_HAS_COMPAT_STATUS_OKAY(cros_ec_gpio_interrupts) DT_FOREACH_CHILD(DT_COMPAT_GET_ANY_STATUS_OKAY(cros_ec_gpio_interrupts), |