Re: [PATCH v2 06/28] drivers: Add generic helper to match by of_node

2019-06-17 Thread Wolfram Sang
> > Is it an option to 'static inline' this simple function in the header, > > saving the EXPORT? > > > > No. OK, thanks for the explanation! signature.asc Description: PGP signature

Re: [PATCH v2 06/28] drivers: Add generic helper to match by of_node

2019-06-17 Thread Suzuki K Poulose
Hi On 14/06/2019 21:31, Wolfram Sang wrote: + +int device_match_of_node(struct device *dev, const void *np) +{ + return dev->of_node == np; +} +EXPORT_SYMBOL_GPL(device_match_of_node); Is it an option to 'static inline' this simple function in the header, saving the EXPORT? No. This

[PATCH v2 06/28] drivers: Add generic helper to match by of_node

2019-06-16 Thread Suzuki K Poulose
Add a helper to match device by the of_node. This will be later used to provide wrappers to the device iterators for {bus/class/driver}_find_device(). Convert other users to reuse this new helper. Cc: Alan Tull Cc: Andrew Lunn Cc: Daniel Vetter Cc: David Airlie Cc: "David S. Miller" Cc:

Re: [PATCH v2 06/28] drivers: Add generic helper to match by of_node

2019-06-14 Thread Wolfram Sang
> + > +int device_match_of_node(struct device *dev, const void *np) > +{ > + return dev->of_node == np; > +} > +EXPORT_SYMBOL_GPL(device_match_of_node); Is it an option to 'static inline' this simple function in the header, saving the EXPORT? signature.asc Description: PGP signature