Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3454574imu; Fri, 18 Jan 2019 10:39:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN7qZOFH3465Nje3Q0f6FfAO6xD/pzGmcki2y+UwOwq37fATUAtGgsKfq0ntrEEoicoYvcR0 X-Received: by 2002:a63:b24a:: with SMTP id t10mr18260420pgo.223.1547836740502; Fri, 18 Jan 2019 10:39:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547836740; cv=none; d=google.com; s=arc-20160816; b=JR/u+6I3X8G5b1wYOhJkfi6oyKZRGHxQTvYkpeg36P0KOc0AmFRohGzpUFMBxXcQpJ YTz8WaT+Saa1d2Ipg8yBjkf0XC+gtrngdt9GAlNGbGZ+GN7yXIt1emObMiOgBTC70AR7 eMnvoUwS2F04pn/bUm+XEIlZAerF/Q/LBFMXO5DZdyqjhdtQrvqhFI1pcLriLgHF+j/P kPRsKLtT/MI/S9tsFNjf/eF9LHXHVlqPugjq5w6F5Dr2wQwGBnDY4WjWCe9Lme88vR5A pa1kU11JEPmumrOF/tIIit/+suz5X8I1j4/CVj+ICv2tOwCvZExtJTRzI9WmKb3+O2PX 3S4Q== 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:dkim-signature; bh=20jChncdEM7xxfBaH+UP9TYNyBtUa8qfM/PAgl05RWo=; b=T606HYYEpgxrdMHcfTuKprhs8k+fJnV/dyaMcpHP1cECtLZwlgoGIQhJbXHe/O82sz 4E8wfu8qmQGf1LF+WmXBBuop+xSL1E2w2yowjdfmohMBPk7sWx5Nb+Ey3Bj+xWZSqo7V BycdY1pTSkf9BexH6jBKh8wz0H2zDpfV+rt1XSCf8jSZfMlr74be07/hPqjgEjCrxBNm SCBX4lMdXRfB+t5To/oHZ5/UHrMdI490RZ175+mJg+udFifKC49PjnUP0zUPIlaYH75a 4v3YTOxq3MmJeA+W8NtEncqxKdDio8cXvhYFzLrKQMhWFhgAOeABf1VXNdUanA1naa+j nCDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=spijkb0k; 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 ce19si5476871plb.13.2019.01.18.10.38.44; Fri, 18 Jan 2019 10:39:00 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=spijkb0k; 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 S1729090AbfARShC (ORCPT + 99 others); Fri, 18 Jan 2019 13:37:02 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:54642 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728649AbfARShB (ORCPT ); Fri, 18 Jan 2019 13:37:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=20jChncdEM7xxfBaH+UP9TYNyBtUa8qfM/PAgl05RWo=; b=spijkb0kxXyuH/EcbHJjjKz9s FYG0LhmA6BuzBL8JF7gNGiCypeq9/IMZboXyySD/DBzZfguq7RhlNWg35ahLFbAC7pHICl2ui7jLy 7k82Gd3eqgGRTynPBV7SKRs/ZNArSO5UqXuvLkwqrqkvgyBUDt12oQIh1G28T6OoA0eBU=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gkZ0g-0005LA-V3; Fri, 18 Jan 2019 18:36:55 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id BCD1811276E7; Fri, 18 Jan 2019 18:36:53 +0000 (GMT) Date: Fri, 18 Jan 2019 18:36:53 +0000 From: Mark Brown To: Bartosz Golaszewski Cc: Bartosz Golaszewski , Rob Herring , Mark Rutland , Linus Walleij , Dmitry Torokhov , Jacek Anaszewski , Pavel Machek , Lee Jones , Sebastian Reichel , Liam Girdwood , Greg Kroah-Hartman , LKML , linux-gpio , linux-devicetree , linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm Subject: Re: [PATCH 08/13] regulator: max77650: add regulator support Message-ID: <20190118183653.GE6260@sirena.org.uk> References: <20190118134244.22253-1-brgl@bgdev.pl> <20190118134244.22253-9-brgl@bgdev.pl> <20190118180148.GD6260@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="T6xhMxlHU34Bk0ad" Content-Disposition: inline In-Reply-To: X-Cookie: You can't get there from here. 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 --T6xhMxlHU34Bk0ad Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 18, 2019 at 07:13:38PM +0100, Bartosz Golaszewski wrote: > pt., 18 sty 2019 o 19:01 Mark Brown napisa=C5=82(a): > > > +++ b/drivers/regulator/max77650-regulator.c > > > @@ -0,0 +1,537 @@ > > > +// SPDX-License-Identifier: GPL-2.0 > > > +/* > > > + * Copyright (C) 2018 BayLibre SAS > > > + * Author: Bartosz Golaszewski > > Please make the entire header C++ style so it looks more intentional. > Seems like there are more files in the kernel source using the mixed > comment style for the SPDX identifier and I also prefer it over C++ > only. Would you mind if it stayed that way? I'd prefer to change. > > You don't need to do this, the core will do it for you (it will actually > > still do it even with the above, it'll only fall back to using > > config->init_data if it's own lookup fails). > I added this loop specifically because the core would not pick up the > init data from DT. What did I miss (some specific variable to assign)? > I just noticed some other drivers do the same and thought it's the > right thing to do. You should set regulators_node and of_match, see regulator_of_get_init_node= (). --T6xhMxlHU34Bk0ad Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlxCHMQACgkQJNaLcl1U h9DXBwf8DBxtp6P6ln8aUsZTEj9e2Ti+0cszf0ukaKXrny3tYAfY8PiUE/iYvr3E 1xb8upkWmq7kT7QO8bm/PbeDdClAIKlfI9aUoWyLo1HkHkj0F4VMUjDMy6mTbsl6 cijuEtr67FxzE+pak6KQOvqhKhh/tp2DMQFZD30dbDhSX3p8cMsM5YTqmlIO1q4t p0Md4tGBiMAvtcI2suzwxkteeTVogqx00qMv6FdUGmupnQZ3y+PldPNpMmRY6ck2 xajDLGrBuvWCLesasIimDKVxmo2VRIYQ+fBqL1zPSJ0roZL1gknOfgmTOPyCwkYs SzRytR1wQyrsQzW0TzFtxFhHHBuNKQ== =LpDs -----END PGP SIGNATURE----- --T6xhMxlHU34Bk0ad--