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

Rob Herring
2023-10-06T17:02:59Z

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@bootlin.com>
> ---
> 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@kernel.org>