On Mon, Dec 7, 2015 at 11:52 AM, Trent Piepho <tpiepho@xxxxxxxxxxxxxx> wrote: > On Mon, 2015-12-07 at 11:40 -0800, Andrey Smirnov wrote: >> On Mon, Dec 7, 2015 at 11:05 AM, Trent Piepho <tpiepho@xxxxxxxxxxxxxx> wrote: >> > On Sun, 2015-12-06 at 23:52 -0800, Andrey Smirnov wrote: >> >> + >> >> + imx_thermal->sensor.name = of_get_property(dev->device_node, >> >> + >> >> "barebox,sensor-name", >> >> + NULL); >> > >> > Wouldn't aliases the proper OF way to do this? >> >> I must admit I am not familiar with the feature you are talking about >> (or maybe I am just not understanding what you mean well), can you >> give me a very brief example? Given my ignorance I wouldn't be >> surprised that it is. > > There is an aliases section at the root of the OF tree, which has > properties set to a phandle for the device the property's name serves as > an alias for. There was a patch to this list last week sometime that > added alias support to the at24 driver for naming eeproms. Ah, I see. Yes, that definitely would be a better way to do what I am trying to do. I'll keep that feature in mind for next version of the patch. Thank you, Andrey _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox