mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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 <jchng@maxlinear.com> Link: https://lore.kernel.org/20250627005419.3124660-1-jchng@maxlinear.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
b838fb5f16
commit
b306791037
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user