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

Wolfram Sang wsa at the-dreams.de
Fri Jun 14 20:31:44 UTC 2019


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190614/3e3f74a0/attachment.sig>


More information about the dri-devel mailing list