From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757842AbcIONgB (ORCPT ); Thu, 15 Sep 2016 09:36:01 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:34051 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752445AbcIONfe (ORCPT ); Thu, 15 Sep 2016 09:35:34 -0400 Date: Thu, 15 Sep 2016 08:34:59 -0500 From: Rob Herring To: Richard Fitzgerald Cc: frowand.list@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, patches@opensource.wolfsonmicro.com Subject: Re: [PATCH v2 1/2] of: Make of_find_property_value_of_size take a length range Message-ID: <20160915133459.GA14424@rob-hp-laptop> References: <1473685289-21830-1-git-send-email-rf@opensource.wolfsonmicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1473685289-21830-1-git-send-email-rf@opensource.wolfsonmicro.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 12, 2016 at 02:01:28PM +0100, Richard Fitzgerald wrote: > In preparation for adding variable-length array reads, change > of_find_property_value_of_size so that it takes an optional > maximum length. If the maximum is passed as 0, the behaviour is > unchanged and it will return a property if it's >= the requested > minimum length. If maximum is non-zero it will only return a > property whose length is min <= l <= max. > > Signed-off-by: Richard Fitzgerald > --- > drivers/of/base.c | 39 +++++++++++++++++++++++++++++---------- > 1 file changed, 29 insertions(+), 10 deletions(-) Applied both patches, thanks. Rob