From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.kymetacorp.com ([192.81.58.21]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a61q7-0000TH-9W for barebox@lists.infradead.org; Mon, 07 Dec 2015 19:52:51 +0000 From: Trent Piepho Date: Mon, 7 Dec 2015 19:52:09 +0000 Message-ID: <1449517935.26955.28.camel@rtred1test09.kymeta.local> References: <1449474763-14099-1-git-send-email-andrew.smirnov@gmail.com> <1449474763-14099-7-git-send-email-andrew.smirnov@gmail.com> <1449515113.26955.21.camel@rtred1test09.kymeta.local> In-Reply-To: Content-Language: en-US Content-ID: <62196676D28AF04AA3E074818C383922@kymetacorp.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 7/7] hwmon: Port TEMPMON sensor driver To: Andrey Smirnov Cc: "barebox@lists.infradead.org" On Mon, 2015-12-07 at 11:40 -0800, Andrey Smirnov wrote: > On Mon, Dec 7, 2015 at 11:05 AM, Trent Piepho 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. _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox