pinctrl: equilibrium: Add request and free hooks
Subsystems (2)
PATCH 1/1 pinctrl: equilibrium: Add request and free hooks
Add request and free gpio_chip hooks to support
gpio allocation and release in the driver.
Signed-off-by Jack Ping CHNG <[email protected]>
--- drivers/pinctrl/pinctrl-equilibrium.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/pinctrl/pinctrl-equilibrium.c +2 -0
@@ -182,6 +182,8 @@ static int gpiochip_setup(struct device *dev, struct eqbr_gpio_ctrl *gctrl) gc = &gctrl->chip; gc->label = gctrl->name; gc->fwnode = gctrl->fwnode; + gc->request = gpiochip_generic_request; + gc->free = gpiochip_generic_free;if (!fwnode_property_read_bool (gctrl->fwnode,"interrupt-controller" )) { dev_dbg(dev, "gc %s: doesn't act as interrupt controller!\n",
Signature · 1 line
2.43.0
Quoted 4 lines · Jack Ping CHNG
Add request and free
gpio_chiphooks to support
gpio allocation and release in the driver.Signed-off-by Jack Ping CHNG <[email protected]>
This makes sense. Patch applied.
Yours,
Linus Walleij