Skip to contentSkip to conversation

pinctrl: sunplus: sppctl: Remove duplicate assignment of of_gpio_n_cells

PATCH In review Andy Shevchenko 2 participants 2 messages Jan 12, 2023 – Jan 16, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: sunplus: sppctl: 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.

---
 drivers/pinctrl/sunplus/sppctl.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pinctrl/sunplus/sppctl.c +0 -1
index 9c57bccc4bda..2ed0591fb51d 100644
@@ -553,7 +553,6 @@ static int sppctl_gpio_new(struct platform_device *pdev, struct sppctl_pdata *pc
 	gchip->base             = -1;
 	gchip->ngpio            = sppctl_gpio_list_sz;
 	gchip->names            = sppctl_gpio_list_s;
-	gchip->of_gpio_n_cells  = 2;
 
 	pctl->pctl_grange.npins = gchip->ngpio;
 	pctl->pctl_grange.name  = gchip->label;
Signature · 7 lines
2.39.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel