From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756581AbbCCMuu (ORCPT ); Tue, 3 Mar 2015 07:50:50 -0500 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:33811 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756536AbbCCMus (ORCPT ); Tue, 3 Mar 2015 07:50:48 -0500 Date: Tue, 3 Mar 2015 12:50:33 +0000 From: Mark Brown To: Bjorn Andersson Cc: Chanwoo Choi , Ian Campbell , Krzysztof Kozlowski , Kumar Gala , Lee Jones , Liam Girdwood , Mark Rutland , Pawel Moll , Rob Herring , Stephen Boyd , Andy Gross , Srinivas Kandagatla , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Message-ID: <20150303125033.GO21293@sirena.org.uk> References: <1425356740-26285-1-git-send-email-bjorn.andersson@sonymobile.com> <1425356740-26285-3-git-send-email-bjorn.andersson@sonymobile.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KJtrLAZG9Uo4yONd" Content-Disposition: inline In-Reply-To: <1425356740-26285-3-git-send-email-bjorn.andersson@sonymobile.com> X-Cookie: My LESLIE GORE record is BROKEN ... User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH 2/4] regulator: core: Expose init_data to of_parse_cb X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --KJtrLAZG9Uo4yONd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Mar 02, 2015 at 08:25:38PM -0800, Bjorn Andersson wrote: > Expose the newly created init_data to the driver's parse callback so > that it can futher enhance it with e.g. constraints of the regulator. Why would the driver need to do that? I guess I'll see later on in the series but the changelog should make that clear. Drivers aren't supposed to ever need to look at their init data, modifying the init data from what the machine provied is usually a red flag. > This is needed because calling regulator_register() with a of_node and > of_match will overwrite the passed config->init_data. An alternative way > would be to merge the parsed init_data with the driver provided one. Put any explanation as to why the feature is needed in the changelog. --KJtrLAZG9Uo4yONd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJU9a4YAAoJECTWi3JdVIfQZoEH/3lwClkjHbGDJ7wBqZOVxxm8 2yWkgC5egQwPhr/L/NuAPGoVVEeKgz/m5Y6NOoOxhJNalxvfyUfConPJU1Se1JpA nSCoi+WNX+mXztApOai8ClxeikHRfxRac4xze22+wRmByTv/ht6HR22aIyTmDnQA 2d2FyGzhEVxV7TNzojPIWN4GIMeMRkOXPbx7Cf8eWEguF1tcQXaua5wpxPDfYUW/ WvKZxxmykBu9Rrz3QDRNeXmzJ1jhXp97LcXBufTS8IwVR3/Pv38QRUhAG/MWBa6z Tyc/ZIRG9cLNKemXNgsvNOxwTvW1ceHwVi/yJOb3w0SWWlXtO36RDgRJvRUizqk= =EUz0 -----END PGP SIGNATURE----- --KJtrLAZG9Uo4yONd--