From 1d928128bd977fd5840874475e86bb7bdda745cf Mon Sep 17 00:00:00 2001 From: Hai-Ninh Dang <30751439+mrninhvn@users.noreply.github.com> Date: Thu, 21 Oct 2021 22:18:33 +0700 Subject: [PATCH] Apply #elif suggestions from code review Co-authored-by: Pete Johanson --- app/boards/arm/mikoto/pinmux.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/boards/arm/mikoto/pinmux.c b/app/boards/arm/mikoto/pinmux.c index 6b632aa4..cfdd9e79 100644 --- a/app/boards/arm/mikoto/pinmux.c +++ b/app/boards/arm/mikoto/pinmux.c @@ -21,19 +21,16 @@ static int pinmux_mikoto_init(const struct device *port) { gpio_pin_configure(p0, 26, GPIO_OUTPUT); gpio_pin_set(p0, 26, 0); gpio_pin_configure(p1, 15, GPIO_INPUT); -#endif -#if CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_250MA +#elif CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_250MA gpio_pin_configure(p0, 26, GPIO_INPUT); gpio_pin_configure(p1, 15, GPIO_OUTPUT); gpio_pin_set(p1, 15, 0); -#endif -#if CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_350MA +#elif CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_350MA gpio_pin_configure(p0, 26, GPIO_OUTPUT); gpio_pin_set(p0, 26, 0); gpio_pin_configure(p1, 15, GPIO_OUTPUT); gpio_pin_set(p1, 15, 0); -#endif -#if CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_NONE +#elif CONFIG_BOARD_MIKOTO_CHARGER_CURRENT_NONE gpio_pin_configure(p0, 26, GPIO_INPUT); gpio_pin_configure(p1, 15, GPIO_INPUT); #endif