Skip to contentSkip to conversation

pinctrl: mcp23s08: Drop assignment of default number of OF cells

PATCH In review Andy Shevchenko 2 participants 2 messages Aug 30, 2022 – Sep 2, 2022

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

PATCH 1/1 pinctrl: mcp23s08: Drop assignment of default number of OF cells

The GPIO library code will assign default value for number of OF cells, no need to repeat this in the driver.

---
 drivers/pinctrl/pinctrl-mcp23s08.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/pinctrl/pinctrl-mcp23s08.c +0 -3
index 695236636d05..5f356edfd0fd 100644
@@ -549,9 +549,6 @@ int mcp23s08_probe_one(struct mcp23s08 *mcp, struct device *dev,
 	mcp->chip.get = mcp23s08_get;
 	mcp->chip.direction_output = mcp23s08_direction_output;
 	mcp->chip.set = mcp23s08_set;
-#ifdef CONFIG_OF_GPIO
-	mcp->chip.of_gpio_n_cells = 2;
-#endif
 
 	mcp->chip.base = base;
 	mcp->chip.can_sleep = true;
Signature · 1 line
2.35.1