pinctrl: sunxi: Declare the number of interrupt banks in the descriptor
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 5 Jun 2014 13:26:02 +0000 (15:26 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 19 Jun 2014 07:35:11 +0000 (09:35 +0200)
Declare in the description structure associated to the compatible the number of
interrupt banks the device has. For now, we're not doing anything with it.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sun4i-a10.c
drivers/pinctrl/sunxi/pinctrl-sun5i-a10s.c
drivers/pinctrl/sunxi/pinctrl-sun5i-a13.c
drivers/pinctrl/sunxi/pinctrl-sun6i-a31-r.c
drivers/pinctrl/sunxi/pinctrl-sun6i-a31.c
drivers/pinctrl/sunxi/pinctrl-sun7i-a20.c
drivers/pinctrl/sunxi/pinctrl-sunxi.h

index fa1ff7c7e35714085e00ebbd7f173d3fd3c57979..86b608bedca6ab6d2a6b998fb9ca49a333a4311a 100644 (file)
@@ -1010,6 +1010,7 @@ static const struct sunxi_desc_pin sun4i_a10_pins[] = {
 static const struct sunxi_pinctrl_desc sun4i_a10_pinctrl_data = {
        .pins = sun4i_a10_pins,
        .npins = ARRAY_SIZE(sun4i_a10_pins),
+       .irq_banks = 1,
 };
 
 static int sun4i_a10_pinctrl_probe(struct platform_device *pdev)
index 164d743f526ce72ea1f661ef290dea94b3f0c57f..2fa7430cabafd23043f8bb384ec22231fecbedda 100644 (file)
@@ -661,6 +661,7 @@ static const struct sunxi_desc_pin sun5i_a10s_pins[] = {
 static const struct sunxi_pinctrl_desc sun5i_a10s_pinctrl_data = {
        .pins = sun5i_a10s_pins,
        .npins = ARRAY_SIZE(sun5i_a10s_pins),
+       .irq_banks = 1,
 };
 
 static int sun5i_a10s_pinctrl_probe(struct platform_device *pdev)
index 1188a2b7b9881b5613b06fac3d38b5e17b381c84..29c734a60b51bfea53485e747896ef38edd4391a 100644 (file)
@@ -382,6 +382,7 @@ static const struct sunxi_desc_pin sun5i_a13_pins[] = {
 static const struct sunxi_pinctrl_desc sun5i_a13_pinctrl_data = {
        .pins = sun5i_a13_pins,
        .npins = ARRAY_SIZE(sun5i_a13_pins),
+       .irq_banks = 1,
 };
 
 static int sun5i_a13_pinctrl_probe(struct platform_device *pdev)
index 8fcba48e0a424b05ed805b4288013689838bca51..9a2517b6511342d6759c80ebdb9eea45c7c39712 100644 (file)
@@ -93,6 +93,7 @@ static const struct sunxi_pinctrl_desc sun6i_a31_r_pinctrl_data = {
        .pins = sun6i_a31_r_pins,
        .npins = ARRAY_SIZE(sun6i_a31_r_pins),
        .pin_base = PL_BASE,
+       .irq_banks = 2,
 };
 
 static int sun6i_a31_r_pinctrl_probe(struct platform_device *pdev)
index 8dea5856458bf1edd2ecb1b938d7720a8fea9947..7adc4888eb276ccdf8f52c5b7a8600d2837b33ed 100644 (file)
@@ -836,6 +836,7 @@ static const struct sunxi_desc_pin sun6i_a31_pins[] = {
 static const struct sunxi_pinctrl_desc sun6i_a31_pinctrl_data = {
        .pins = sun6i_a31_pins,
        .npins = ARRAY_SIZE(sun6i_a31_pins),
+       .irq_banks = 4,
 };
 
 static int sun6i_a31_pinctrl_probe(struct platform_device *pdev)
index d8577ce5f1a405dc49c61e0ddee01b7079bf5563..dac99e02bfdb9bd1bbe9138c98a228fb7797bfd1 100644 (file)
@@ -1036,6 +1036,7 @@ static const struct sunxi_desc_pin sun7i_a20_pins[] = {
 static const struct sunxi_pinctrl_desc sun7i_a20_pinctrl_data = {
        .pins = sun7i_a20_pins,
        .npins = ARRAY_SIZE(sun7i_a20_pins),
+       .irq_banks = 1,
 };
 
 static int sun7i_a20_pinctrl_probe(struct platform_device *pdev)
index cb87e15b1b3cbeef48348e204e871230f76fdfd8..7ddcce0f3c2763252d250b79baaf10aaf09c17a2 100644 (file)
@@ -90,6 +90,7 @@ struct sunxi_pinctrl_desc {
        const struct sunxi_desc_pin     *pins;
        int                             npins;
        unsigned                        pin_base;
+       unsigned                        irq_banks;
 };
 
 struct sunxi_pinctrl_function {