[PATCH 7/7] hwmon: Port TEMPMON sensor driver

Trent Piepho tpiepho at kymetacorp.com
Mon Dec 7 11:52:09 PST 2015


On Mon, 2015-12-07 at 11:40 -0800, Andrey Smirnov wrote:
> On Mon, Dec 7, 2015 at 11:05 AM, Trent Piepho <tpiepho at kymetacorp.com> 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.


More information about the barebox mailing list