From mboxrd@z Thu Jan 1 00:00:00 1970 From: heiko@sntech.de (Heiko =?ISO-8859-1?Q?St=FCbner?=) Date: Tue, 04 Feb 2014 19:48:17 +0100 Subject: [PATCH v4] of: add functions to count number of elements in a property In-Reply-To: <20140204173034.2D899C4050F@trevor.secretlab.ca> References: <27256277.YJ687suYy5@phil> <20140204173034.2D899C4050F@trevor.secretlab.ca> Message-ID: <13514940.URVnEJ4NF0@phil> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Grant, On Tuesday, 4. February 2014 17:30:34 Grant Likely wrote: > On Sat, 18 Jan 2014 09:07:30 -0600, Rob Herring wrote: > > On Sat, Jan 18, 2014 at 6:02 AM, Heiko St??bner wrote: > > > The need to know the number of array elements in a property is > > > a common pattern. To prevent duplication of open-coded implementations > > > add a helper static function that also centralises strict sanity > > > checking and DTB format details, as well as a set of wrapper functions > > > for u8, u16, u32 and u64. > > > > > > Suggested-by: Mark Rutland > > > Signed-off-by: Heiko Stuebner > > > --- > > > > Looks good. Do you plan to convert some users to use this? > > I'll take that as an acked-by. Merged, thanks. before you taking this patch, I was planning on simply sending this as part of my rockchip-smp series - as I'm currently the only user of it :-) . This going through your tree is most likely the better way, but now I need it to somehow make its way into arm-soc too ... I guess some sort of stable branch arm-soc could pull? Thanks Heiko From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko =?ISO-8859-1?Q?St=FCbner?= Subject: Re: [PATCH v4] of: add functions to count number of elements in a property Date: Tue, 04 Feb 2014 19:48:17 +0100 Message-ID: <13514940.URVnEJ4NF0@phil> References: <27256277.YJ687suYy5@phil> <20140204173034.2D899C4050F@trevor.secretlab.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20140204173034.2D899C4050F-WNowdnHR2B42iJbIjFUEsiwD8/FfD2ys@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Grant Likely , arm-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org Cc: Rob Herring , Mark Rutland , Pawel Moll , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Stephen Warren , Ian Campbell List-Id: devicetree@vger.kernel.org Hi Grant, On Tuesday, 4. February 2014 17:30:34 Grant Likely wrote: > On Sat, 18 Jan 2014 09:07:30 -0600, Rob Herring =20 wrote: > > On Sat, Jan 18, 2014 at 6:02 AM, Heiko St=C3=BCbner wrote: > > > The need to know the number of array elements in a property is > > > a common pattern. To prevent duplication of open-coded implementa= tions > > > add a helper static function that also centralises strict sanity > > > checking and DTB format details, as well as a set of wrapper func= tions > > > for u8, u16, u32 and u64. > > >=20 > > > Suggested-by: Mark Rutland > > > Signed-off-by: Heiko Stuebner > > > --- > >=20 > > Looks good. Do you plan to convert some users to use this? >=20 > I'll take that as an acked-by. Merged, thanks. before you taking this patch, I was planning on simply sending this as = part of=20 my rockchip-smp series - as I'm currently the only user of it :-) . This going through your tree is most likely the better way, but now I n= eed it=20 to somehow make its way into arm-soc too ... I guess some sort of stabl= e=20 branch arm-soc could pull? Thanks Heiko -- To unsubscribe from this list: send the line "unsubscribe devicetree" i= n the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754696AbaBDStJ (ORCPT ); Tue, 4 Feb 2014 13:49:09 -0500 Received: from gloria.sntech.de ([95.129.55.99]:52815 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753502AbaBDStG convert rfc822-to-8bit (ORCPT ); Tue, 4 Feb 2014 13:49:06 -0500 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Grant Likely , arm@kernel.org Cc: Rob Herring , Mark Rutland , Pawel Moll , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Stephen Warren , Ian Campbell Subject: Re: [PATCH v4] of: add functions to count number of elements in a property Date: Tue, 04 Feb 2014 19:48:17 +0100 Message-ID: <13514940.URVnEJ4NF0@phil> User-Agent: KMail/4.11.3 (Linux/3.11-2-amd64; KDE/4.11.3; x86_64; ; ) In-Reply-To: <20140204173034.2D899C4050F@trevor.secretlab.ca> References: <27256277.YJ687suYy5@phil> <20140204173034.2D899C4050F@trevor.secretlab.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Grant, On Tuesday, 4. February 2014 17:30:34 Grant Likely wrote: > On Sat, 18 Jan 2014 09:07:30 -0600, Rob Herring wrote: > > On Sat, Jan 18, 2014 at 6:02 AM, Heiko Stübner wrote: > > > The need to know the number of array elements in a property is > > > a common pattern. To prevent duplication of open-coded implementations > > > add a helper static function that also centralises strict sanity > > > checking and DTB format details, as well as a set of wrapper functions > > > for u8, u16, u32 and u64. > > > > > > Suggested-by: Mark Rutland > > > Signed-off-by: Heiko Stuebner > > > --- > > > > Looks good. Do you plan to convert some users to use this? > > I'll take that as an acked-by. Merged, thanks. before you taking this patch, I was planning on simply sending this as part of my rockchip-smp series - as I'm currently the only user of it :-) . This going through your tree is most likely the better way, but now I need it to somehow make its way into arm-soc too ... I guess some sort of stable branch arm-soc could pull? Thanks Heiko