Re: [PATCH v12 1/7] of: device: Export of_device_make_bus_id()

From: Rob Herring
Date: Fri Oct 06 2023 - 13:02:59 EST



On Thu, 05 Oct 2023 17:59:01 +0200, Miquel Raynal wrote:
> This helper is really handy to create unique device names based on their
> device tree path, we may need it outside of the OF core (in the NVMEM
> subsystem) so let's export it. As this helper has nothing patform
> specific, let's move it to of/device.c instead of of/platform.c so we
> can add its prototype to of_device.h.
>
> Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
> ---
> drivers/of/device.c | 41 +++++++++++++++++++++++++++++++++++++++
> drivers/of/platform.c | 40 --------------------------------------
> include/linux/of_device.h | 6 ++++++
> 3 files changed, 47 insertions(+), 40 deletions(-)
>

Acked-by: Rob Herring <robh@xxxxxxxxxx>