diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-09-02 20:26:39 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2022-09-08 10:05:39 +0200 |
commit | 28ce127238f4bd3aaf5b6666f48f8e2a34b81579 (patch) | |
tree | 3399bba2bcd606702c76a47a7f456b224e4ce7d5 /drivers/pinctrl/pinctrl-cy8c95x0.c | |
parent | pinctrl: cy8c95x0: Fix pin control name to enable more than one (diff) | |
download | linux-28ce127238f4bd3aaf5b6666f48f8e2a34b81579.tar.xz linux-28ce127238f4bd3aaf5b6666f48f8e2a34b81579.zip |
pinctrl: cy8c95x0: Drop unneeded npins assignment
The npins field is assigned twice. Remove the first occurrence.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Link: https://lore.kernel.org/r/20220902182650.83098-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-cy8c95x0.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-cy8c95x0.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-cy8c95x0.c b/drivers/pinctrl/pinctrl-cy8c95x0.c index fa3764e768a4..a511044ea60a 100644 --- a/drivers/pinctrl/pinctrl-cy8c95x0.c +++ b/drivers/pinctrl/pinctrl-cy8c95x0.c @@ -1198,7 +1198,6 @@ static int cy8c95x0_setup_pinctrl(struct cy8c95x0_pinctrl *chip) pd->pctlops = &cy8c95x0_pinctrl_ops; pd->confops = &cy8c95x0_pinconf_ops; pd->pmxops = &cy8c95x0_pmxops; - pd->npins = chip->gpio_chip.ngpio; pd->name = dev_name(chip->dev); pd->pins = cy8c9560_pins; pd->npins = chip->tpin; |