pinctrl: digicolor: Remove duplicate assignment of of_gpio_n_cells
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/pinctrl/pinctrl-digicolor.c | 1 - 1 file changed, 1 deletion(-)
drivers/pinctrl/pinctrl-digicolor.c +0 -1
@@ -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);
Signature · 7 lines
2.39.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 2 lines · Andy Shevchenko
The
of_gpio_n_cellsdefault is 2 when ->of_xlate() callback is not defined. No need to assign it explicitly in the driver.
Ignore this one, it has been (re-)sent as a part of the series which needs an update, so look forward to the v2 of that one.
Signature · 9 lines
With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel