[PATCH v3 17/24] driver core: Export get_dev_from_fwnode()
Greg Kroah-Hartman
gregkh at linuxfoundation.org
Wed Jul 2 00:34:12 PDT 2025
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 at google.com>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Tested-by: Hiago De Franco <hiago.franco at toradex.com> # Colibri iMX8X
> Tested-by: Tomi Valkeinen <tomi.valkeinen at ideasonboard.com> # TI AM62A,Xilinx ZynqMP ZCU106
> Signed-off-by: Ulf Hansson <ulf.hansson at linaro.org>
> ---
> drivers/base/core.c | 8 ++++++--
> include/linux/device.h | 1 +
> 2 files changed, 7 insertions(+), 2 deletions(-)
>
Acked-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
More information about the linux-arm-kernel
mailing list