From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754170AbbCIJiN (ORCPT ); Mon, 9 Mar 2015 05:38:13 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:41024 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753669AbbCIJiK (ORCPT ); Mon, 9 Mar 2015 05:38:10 -0400 Date: Mon, 9 Mar 2015 09:38:05 +0000 From: Lee Jones To: Charles Keepax Cc: sameo@linux.intel.com, robh+dt@kernel.org, mark.rutland@arm.com, galak@codeaurora.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, patches@opensource.wolfsonmicro.com Subject: Re: [PATCH 1/2 v2] mfd: arizona: Add DT binding for the DMIC reference voltages Message-ID: <20150309093805.GJ3427@x1> References: <1425395094-22397-1-git-send-email-ckeepax@opensource.wolfsonmicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1425395094-22397-1-git-send-email-ckeepax@opensource.wolfsonmicro.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 03 Mar 2015, Charles Keepax wrote: > Add a DT binding that lets the DMIC reference voltage source be > specified for each input. > > Signed-off-by: Charles Keepax > --- > > The only change since rev 1 is a slight tweak to the wording of > everything to make clear these are voltages. > > Thanks, > Charles > > drivers/mfd/arizona-core.c | 10 ++++++++++ > 1 files changed, 10 insertions(+), 0 deletions(-) Applied, thanks. > diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c > index 09ba8f1..d6f306e 100644 > --- a/drivers/mfd/arizona-core.c > +++ b/drivers/mfd/arizona-core.c > @@ -561,6 +561,16 @@ static int arizona_of_get_core_pdata(struct arizona *arizona) > count++; > } > > + count = 0; > + of_property_for_each_u32(arizona->dev->of_node, "wlf,dmic-ref", prop, > + cur, val) { > + if (count == ARRAY_SIZE(arizona->pdata.dmic_ref)) > + break; > + > + arizona->pdata.dmic_ref[count] = val; > + count++; > + } > + > return 0; > } > -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog