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>
This commit is contained in:
parent
ef4290e6bd
commit
aeb3c200db
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue