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 i

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 ___