chip/npcx/gpio.c: Format with clang-format
BRANCH=none
TEST=none
@@ -101,8 +101,7 @@ static uint8_t gpio_is_alt_sel(uint8_t port, uint8_t bit)
struct gpio_alt_map const *map;
uint8_t alt_mask, devalt;
- for (map = ARRAY_BEGIN(gpio_alt_table);
- map < ARRAY_END(gpio_alt_table);
+ for (map = ARRAY_BEGIN(gpio_alt_table); map < ARRAY_END(gpio_alt_table);
map++) {
if (gpio_match(port, bit, map->gpio)) {
alt_mask = 1 << map->alt.bit;
@@ -127,8 +126,7 @@ static int gpio_alt_sel(uint8_t port, uint8_t bit,
{
struct gpio_alt_map const *map;
- for (map = ARRAY_BEGIN(gpio_alt_table);
- map < ARRAY_END(gpio_alt_table);
+ for (map = ARRAY_BEGIN(gpio_alt_table); map < ARRAY_END(gpio_alt_table);
map++) {
if (gpio_match(port, bit, map->gpio)) {
uint8_t alt_mask = 1 << map->alt.bit;
@@ -714,8 +712,8 @@ static int command_gpiodisable(int argc, char **argv)
offset = idx + GPIO_IH_COUNT;
g_list = gpio_list + offset;
flags = g_list->flags;
- ccprintf("current GPIO : %d %s --> ",
- offset, g_list->name);
+ ccprintf("current GPIO : %d %s --> ", offset,
+ g_list->name);
if (gpio_is_i2c_pin(offset)) {
ccprintf("Ignore I2C pin!\n");
idx++;
@@ -759,7 +757,7 @@ static int command_gpiodisable(int argc, char **argv)
}
return EC_ERROR_INVAL;
}
-DECLARE_CONSOLE_COMMAND(gpiodisable, command_gpiodisable,
- "info/list/next/<num> on|off",
+DECLARE_CONSOLE_COMMAND(
+ gpiodisable, command_gpiodisable, "info/list/next/<num> on|off",
"Disable GPIO input buffer to investigate power consumption");
#endif
