Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1029516ybl; Wed, 8 Jan 2020 09:46:35 -0800 (PST) X-Google-Smtp-Source: APXvYqw1QhSP2iOPv559gLIjQdqjvAwrERMpOkrLN4zqWTATvjZC/1wGnu8B/rkQeDmrf4E6uWKI X-Received: by 2002:a05:6830:1d59:: with SMTP id p25mr5303271oth.308.1578505595804; Wed, 08 Jan 2020 09:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578505595; cv=none; d=google.com; s=arc-20160816; b=qgJXp1NGzd0AMPMidf5l9K7ZQB+VnjNly2BGmjHj9RfIjxNZ1xnfc5t5un8egvpSHl zLaIzwV5EGu196JHjUZ5voS5giHUPya29CCRvL+NGc5m3uT7yh4+NU3DJvTxHTw4ilTX svG2fxxgdr86q6MXD887LFsPYwNLC7Agjtb6aDEyyRj0DfWrDNue5UnSkfyZP0wNQvly RjkqIBtFx46bxY3qT8lXpXX/laAtcj89NwUe74cYbFWy6vgA2PdweuSWUnEIuw/vX2c8 OgYiK84v6Zx+z7gVBjd8uQu7uMtYfFNGMpQjgiO4B3Cj0V/5pNB2ad7+AUveuf3TZm6o LOJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+qf/R3bSM5MBKy+eJw5QbaH6hlE3vkaQcO3AJdeOnBQ=; b=Ib7xElVwdkU934opu2hclDpeiBJ0JfQIJeNSjU2YyPimHdgyrv0gWLROfBeW6cDlj7 LVUlWSlN1rW5+1lBndFw+dQUKYKA5nYsiy8PI9XcTjvm4FO+vbcIYlzn0xRdXR3mWOin 02AUcPRMYKQqmDIy6A6TqEkMvXG9TivU6QwOupGjOCinIpUqSKNR2TFN+HadFzl8y6Ao LVQSdki/TkcQNKiTjLCbaDMtO2+q4mLyLk289tH3Up+aht8eIZjmveaFQYxqMba77opR npGbGzEPfx8/bKN//kGs+vpCfXLsarEfZHmaSuJEnjQ777DWcyTDf3UBD0Zrzs80lORl bZsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f190si2155257oig.229.2020.01.08.09.46.24; Wed, 08 Jan 2020 09:46:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728760AbgAHPu6 (ORCPT + 99 others); Wed, 8 Jan 2020 10:50:58 -0500 Received: from foss.arm.com ([217.140.110.172]:46396 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbgAHPu6 (ORCPT ); Wed, 8 Jan 2020 10:50:58 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 05CC031B; Wed, 8 Jan 2020 07:50:58 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 837E23F534; Wed, 8 Jan 2020 07:50:57 -0800 (PST) Date: Wed, 8 Jan 2020 15:50:56 +0000 From: Mark Brown To: Saravanan Sekar Cc: lgirdwood@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, mripard@kernel.org, shawnguo@kernel.org, heiko@sntech.de, sam@ravnborg.org, icenowy@aosc.io, laurent.pinchart@ideasonboard.com, gregkh@linuxfoundation.org, Jonathan.Cameron@huawei.com, davem@davemloft.net, mchehab+samsung@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 3/4] regulator: mpq7920: add mpq7920 regulator driver Message-ID: <20200108155056.GA4036@sirena.org.uk> References: <20200108131234.24128-1-sravanhome@gmail.com> <20200108131234.24128-4-sravanhome@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline In-Reply-To: <20200108131234.24128-4-sravanhome@gmail.com> X-Cookie: My vaseline is RUNNING... User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jan 08, 2020 at 02:12:33PM +0100, Saravanan Sekar wrote: > + for_each_child_of_node(np, child) { > + for (i = 0; i <= MPQ7920_BUCK4; i++) { > + struct regulator_desc *rdesc = &info->rdesc[i]; > + > + if (strcmp(rdesc->name, child->name)) > + continue; You can replace this loop with an of_parse_cb callback, please send an incremental patch doing this. --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl4V+loACgkQJNaLcl1U h9COqwf/fFpfXig6rh7ARcurwTgTV49oOWEbpumCuN5gZAi1vxKX7avl4APGbadS jvOJPUCAxapnVoKqG43Y+SkZyz8Tu6pDz7yaGbSvo91UayuEbwkTy5edLuxld1cV 0x6Jv4WQo6Kz7XMypUI9Zi8ahxS8ZnA5WJvCMveRa16uC7DeBpoYVhr2Q8TEcHZQ oulZOkT+j2y049GY3ZHTSdg6PAgu+XlfFXoppg2Unqwfpb8C6/IdPgW6mvEJgdTY ZukNejDLOsvG8bnc4VeZ/5y8qlG65DkBJDYfIpOqQVVcQbvR7jNk0eSWf7/o27FJ U6r8PglFKgzEtFa0MLLDrvZE2rpK0w== =0O/A -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q--