Skip to content

Commit 4713b70

Browse files
Andre-ARMlinusw
authored andcommitted
pinctrl: sunxi: increase number of GPIO bank regulators
By design, the Allwinner pinctrl IP always supported up to 11 GPIO banks, though no SoC ever used more than 9 banks so far. The Allwinner A523 has pins in all 11 banks, which exceeds the number of per-bank regulators that we currently support, as this was set to 9. Increase the size of the array to hold up to 11 regulator structs, to support pins in bank J and K as well. Signed-off-by: Andre Przywara <[email protected]> Reviewed-by: Chen-Yu Tsai <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 12966fd commit 4713b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/sunxi/pinctrl-sunxi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ struct sunxi_pinctrl {
155155
struct gpio_chip *chip;
156156
const struct sunxi_pinctrl_desc *desc;
157157
struct device *dev;
158-
struct sunxi_pinctrl_regulator regulators[9];
158+
struct sunxi_pinctrl_regulator regulators[11];
159159
struct irq_domain *domain;
160160
struct sunxi_pinctrl_function *functions;
161161
unsigned nfunctions;

0 commit comments

Comments
 (0)