[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YhPP5GWt7XEv5xx8@smile.fi.intel.com>
Date: Mon, 21 Feb 2022 19:46:12 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Clément Léger <clement.leger@...tlin.com>
Cc: Daniel Scally <djrscally@...il.com>,
Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
Sakari Ailus <sakari.ailus@...ux.intel.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J . Wysocki" <rafael@...nel.org>,
Wolfram Sang <wsa@...nel.org>, Peter Rosin <peda@...ntia.se>,
Russell King <linux@...linux.org.uk>,
Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, linux-kernel@...r.kernel.org,
linux-acpi@...r.kernel.org, linux-i2c@...r.kernel.org,
netdev@...r.kernel.org,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>
Subject: Re: [RFC 02/10] property: add fwnode_get_match_data()
On Mon, Feb 21, 2022 at 05:26:44PM +0100, Clément Léger wrote:
> Add fwnode_get_match_data() which is meant to be used as
> device_get_match_data for fwnode_operations.
...
> +const void *fwnode_get_match_data(const struct fwnode_handle *fwnode,
> + const struct device *dev)
> +{
> + const struct of_device_id *match;
> +
> + match = fwnode_match_node(fwnode, dev->driver->of_match_table);
> + if (!match)
> + return NULL;
> +
> + return match->data;
> +}
It's OF-centric API, why it has fwnode prefix? Can it leave in drivers/of instead?
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists