> > 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
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
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:
> +
> +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