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>