Re: [PATCH v3 17/24] driver core: Export get_dev_from_fwnode()

From: Greg Kroah-Hartman
Date: Wed Jul 02 2025 - 03:34:24 EST


On Tue, Jul 01, 2025 at 01:47:19PM +0200, Ulf Hansson wrote:
> It has turned out get_dev_from_fwnode() is useful at a few other places
> outside of the driver core, as in gpiolib.c for example. Therefore let's
> make it available as a common helper function.
>
> Suggested-by: Saravana Kannan <saravanak@xxxxxxxxxx>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Tested-by: Hiago De Franco <hiago.franco@xxxxxxxxxxx> # Colibri iMX8X
> Tested-by: Tomi Valkeinen <tomi.valkeinen@xxxxxxxxxxxxxxxx> # TI AM62A,Xilinx ZynqMP ZCU106
> Signed-off-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx>
> ---
> drivers/base/core.c | 8 ++++++--
> include/linux/device.h | 1 +
> 2 files changed, 7 insertions(+), 2 deletions(-)
>

Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>