pinctrl: qcom: lpass-lpi: Remove duplicate assignment of of_gpio_n_cells
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 12 Jan 2023 18:49:23 +0000 (20:49 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 16 Jan 2023 14:02:16 +0000 (15:02 +0100)
The of_gpio_n_cells default is 2 when ->of_xlate() callback is
not defined. No need to assign it explicitly in the driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230112184923.80442-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-lpass-lpi.c

index 3dc670f..8792025 100644 (file)
@@ -430,7 +430,6 @@ int lpi_pinctrl_probe(struct platform_device *pdev)
        pctrl->chip.base = -1;
        pctrl->chip.ngpio = data->npins;
        pctrl->chip.label = dev_name(dev);
-       pctrl->chip.of_gpio_n_cells = 2;
        pctrl->chip.can_sleep = false;
 
        mutex_init(&pctrl->slew_access_lock);