summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-digicolor.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-01-13 17:36:39 +0300
committerLinus Walleij <linus.walleij@linaro.org>2023-01-16 17:14:03 +0300
commitaeb3c200db418207ae9aa426bd128527cb688b66 (patch)
tree55e982452c8a82525974b48175c073f4b8900414 /drivers/pinctrl/pinctrl-digicolor.c
parentef4290e6bd99149d21c99bb4905c61f8c94a05ca (diff)
downloadlinux-aeb3c200db418207ae9aa426bd128527cb688b66.tar.xz
pinctrl: digicolor: Remove duplicate assignment of of_gpio_n_cells
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> Acked-by: Baruch Siach <baruch@tkos.co.il> Link: https://lore.kernel.org/r/20230113143640.24302-1-andriy.shevchenko@linux.intel.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-digicolor.c')
-rw-r--r--drivers/pinctrl/pinctrl-digicolor.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-digicolor.c b/drivers/pinctrl/pinctrl-digicolor.c
index cc3546fc4610..05213261b8a4 100644
--- a/drivers/pinctrl/pinctrl-digicolor.c
+++ b/drivers/pinctrl/pinctrl-digicolor.c
@@ -248,7 +248,6 @@ static int dc_gpiochip_add(struct dc_pinmap *pmap)
chip->set = dc_gpio_set;
chip->base = -1;
chip->ngpio = PINS_COUNT;
- chip->of_gpio_n_cells = 2;
spin_lock_init(&pmap->lock);