Skip to content

Commit e1fa728

Browse files
galaknashif
authored andcommitted
boards: lpcxpresso55s69: Fix use of deprecated macro
In board pinmux.c ifdef of the form DT_GPIO_KEYS_SWx_GPIO_CONTROLLER should be DT_GPIO_KEYS_SWx_GPIOS_CONTROLLER. Signed-off-by: Kumar Gala <[email protected]>
1 parent ef6ac67 commit e1fa728

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

boards/arm/lpcxpresso55s69/pinmux.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static int lpcxpresso_55s69_pinmux_init(struct device *dev)
4848

4949
#endif
5050

51-
#ifdef DT_GPIO_KEYS_SW0_GPIO_CONTROLLER
51+
#ifdef DT_GPIO_KEYS_SW0_GPIOS_CONTROLLER
5252
const u32_t sw0_config = (
5353
IOCON_PIO_FUNC0 |
5454
IOCON_PIO_MODE_PULLUP |
@@ -61,7 +61,7 @@ static int lpcxpresso_55s69_pinmux_init(struct device *dev)
6161
pinmux_pin_set(port0, DT_ALIAS_SW0_GPIOS_PIN, sw0_config);
6262
#endif
6363

64-
#ifdef DT_GPIO_KEYS_SW1_GPIO_CONTROLLER
64+
#ifdef DT_GPIO_KEYS_SW1_GPIOS_CONTROLLER
6565
const u32_t sw1_config = (
6666
IOCON_PIO_FUNC0 |
6767
IOCON_PIO_MODE_PULLUP |
@@ -74,7 +74,7 @@ static int lpcxpresso_55s69_pinmux_init(struct device *dev)
7474
pinmux_pin_set(port1, DT_ALIAS_SW0_GPIOS_PIN, sw1_config);
7575
#endif
7676

77-
#ifdef DT_GPIO_KEYS_SW2_GPIO_CONTROLLER
77+
#ifdef DT_GPIO_KEYS_SW2_GPIOS_CONTROLLER
7878
const u32_t sw2_config = (
7979
IOCON_PIO_FUNC0 |
8080
IOCON_PIO_MODE_PULLUP |

0 commit comments

Comments
 (0)