Apply #elif suggestions from code review

Co-authored-by: Pete Johanson <peter@peterjohanson.com>
This commit is contained in:
Hai-Ninh Dang 2021-10-21 22:18:33 +07:00 committed by GitHub
parent b0462e54b6
commit 1d928128bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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