Thread (23 messages) 23 messages, 5 authors, 2021-03-11

Re: [PATCH v5 02/15] gpio: regmap: set gpio_chip of_node

From: Andy Shevchenko <hidden>
Date: 2021-03-06 16:27:23
Also in: linux-devicetree, linux-gpio, lkml

On Sat, Mar 6, 2021 at 5:57 PM Álvaro Fernández Rojas [off-list ref] wrote:
This is needed for properly registering GPIO regmap as a child of a regmap
pin controller.
Thanks for an update!

...
        chip->parent = config->parent;
+       if (config->fwnode)
This...
+               chip->of_node = to_of_node(config->fwnode);
+       else
+               chip->of_node = dev_of_node(config->parent);
...and these lines are not needed. If there is no of_node in the chip,
the GPIO library will take care of it to be parent's one.

-- 
With Best Regards,
Andy Shevchenko

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help