On Wed, Sep 4, 2019 at 9:14 AM Rashmica Gupta <rashmica.g@xxxxxxxxx> wrote: > > The ast2600 has two gpio controllers, one for 3.6V GPIOS and one for 1.8V GPIOS. > > Signed-off-by: Rashmica Gupta <rashmica.g@xxxxxxxxx> > - for (i = 0; i < ARRAY_SIZE(aspeed_gpio_banks); i++) { > + banks = (gpio->config->nr_gpios >> 5) + 1; Same comment as per the other patch. > + for (i = 0; i < banks; i++) { > +static const struct aspeed_bank_props ast2600_bank_props[] = { > + /* input output */ > + {5, 0xffffffff, 0x0000ffff}, /* U/V/W/X */ > + {6, 0xffff0000, 0x0fff0000}, /* Y/Z */ Perhaps GENMASK() for all values? > + { }, Comma is not needed here. > +}; > + > +static const struct aspeed_gpio_config ast2600_config = > + /* 208 3.6V GPIOs */ > + { .nr_gpios = 208, .props = ast2600_bank_props, }; Seems curly braces missed their places. > +static const struct aspeed_bank_props ast2600_1_8v_bank_props[] = { > + /* input output */ > + {1, 0x0000000f, 0x0000000f}, /* E */ GENMASK()? > + { }, No comma. > +}; > +static const struct aspeed_gpio_config ast2600_1_8v_config = > + /* 36 1.8V GPIOs */ > + { .nr_gpios = 36, .props = ast2600_1_8v_bank_props, }; Location of the curly braces? -- With Best Regards, Andy Shevchenko