Re: [PATCH v1 2/4] gpiolib: Move of_node operations to gpiolib-of and correct fwnode use

2021-03-03 Thread Linus Walleij
On Tue, Mar 2, 2021 at 4:35 PM Andy Shevchenko wrote: > The initial value of the OF node based on presence of parent, but > at the same time this operation somehow appeared separately from others > that handle the OF case. On the other hand there is no need to assign > dev->fwnode in the OF case

[PATCH v1 2/4] gpiolib: Move of_node operations to gpiolib-of and correct fwnode use

2021-03-02 Thread Andy Shevchenko
The initial value of the OF node based on presence of parent, but at the same time this operation somehow appeared separately from others that handle the OF case. On the other hand there is no need to assign dev->fwnode in the OF case if code properly retrieves fwnode, i.e. via dev_fwnode() helper.