Skip to contentSkip to conversation

pinctrl: qcom: lpass-lpi: Remove duplicate assignment of of_gpio_n_cells

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

Subsystems (5)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: qcom: lpass-lpi: 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/qcom/pinctrl-lpass-lpi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pinctrl/qcom/pinctrl-lpass-lpi.c +0 -1
index 3dc670faa59e..87920257bb73 100644
@@ -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);
Signature · 1 line
2.39.0