Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3237568imm; Sun, 16 Sep 2018 13:05:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbW0rQDaiorW9SXS6GrCe2EIhc1vsBa05qmzfTRPX0ikLcq2HPxSo+2J2t9cATwdTZEO/Be X-Received: by 2002:a62:1544:: with SMTP id 65-v6mr22621903pfv.178.1537128306430; Sun, 16 Sep 2018 13:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537128306; cv=none; d=google.com; s=arc-20160816; b=sHUZ7BdCpa4FbWk75dcYdZ2M+vHdzrEAYi6/ZPEOi1eXqUkqT7ZMNORjAeTxb9Ghrk wmnTqKZT/BFg8vBWIa5K3duMLKGfpYJpKXpWoPlBHSXBxYbRqgtpzITez8aSASAI/inC XE6rVtkRnuBjhQ4eDDs7+oCqMa9vVOlnMoZx62GZJ26Q2/yvPL6ZJmcpgZl2hFpY/a82 9q5dpct61g3qbM5QS1LK+IzJICbel0OXAy4GKWOXZs5FU6l8E+mZlJi+t1UEQ9RayaDi FtlRm7hmt3+h9a7vxmoH7vJXauOLwuf49+pwacKX9yAFFvVa1b8LDNpjqXFBiRaI+jM1 Oh8A== 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=baQ262/Ug9yhK4bXhZEuSTMKBUCK7p+w9J2qtuKeywg=; b=QO4TiD670q2xiIrlhmDG9FN820TpdAdr9bjxwzzWY3wr3DpuThGlhh/p3qdJzR1zd5 pUVePHwKBIhO6Tacs0J/p89ONYGD/dFDWX8/qvgINKfKWPl2YDBQQbU6Ufnis0NEn0Dd GW4W6UEaIJq7OU0+Q9zRoHiGzJ1+J7eBurzVX0WaTw4ji+JabeI+wsLmhN3QT7i+YimP iykWuUtiA7w58cTD7KgPYlUpZ552QZkGQdsrLbBd06yezVBrWnng2nEEJpgqQcjos0ZZ QgVLcRXJBpDKSxBfezO7CfQ43hL6MZA9AYVChrl6V1mC/iyQFaX+Da3GigKBEB0p8gJ9 6PKQ== 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5-v6si13369303plo.380.2018.09.16.13.04.51; Sun, 16 Sep 2018 13:05:06 -0700 (PDT) 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728668AbeIQB0p (ORCPT + 99 others); Sun, 16 Sep 2018 21:26:45 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:47110 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728568AbeIQB0o (ORCPT ); Sun, 16 Sep 2018 21:26:44 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id DEEDB27DB3B Received: by earth.universe (Postfix, from userid 1000) id 2B05D3C0C4D; Sun, 16 Sep 2018 13:47:10 +0200 (CEST) Date: Sun, 16 Sep 2018 13:47:10 +0200 From: Sebastian Reichel To: =?utf-8?B?UGF3ZcWC?= Chmiel Cc: lgirdwood@gmail.com, broonie@kernel.org, lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Tomasz Figa Subject: Re: [PATCH v3 1/3] power: supply: max8998-charger: Fix platform data retrieval Message-ID: <20180916114710.gc2hqxwtjqfgoc2r@earth.universe> References: <1531843509-3533-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> <1531843509-3533-2-git-send-email-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bdmw3abbzs6dkzjg" Content-Disposition: inline In-Reply-To: <1531843509-3533-2-git-send-email-pawel.mikolaj.chmiel@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bdmw3abbzs6dkzjg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Jul 17, 2018 at 06:05:07PM +0200, Pawe=C5=82 Chmiel wrote: > From: Tomasz Figa >=20 > Since the max8998 MFD driver supports instantiation by DT, platform data > retrieval is handled in MFD probe and cell drivers should get use > the pdata field of max8998_dev struct to obtain them. >=20 > Fixes: ee999fb3f17f ("mfd: max8998: Add support for Device Tree") > Signed-off-by: Tomasz Figa > Signed-off-by: Pawe=C5=82 Chmiel > --- Thanks, queued. -- Sebastian > drivers/power/supply/max8998_charger.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/power/supply/max8998_charger.c b/drivers/power/suppl= y/max8998_charger.c > index b64cf0f14142..66438029bdd0 100644 > --- a/drivers/power/supply/max8998_charger.c > +++ b/drivers/power/supply/max8998_charger.c > @@ -85,7 +85,7 @@ static const struct power_supply_desc max8998_battery_d= esc =3D { > static int max8998_battery_probe(struct platform_device *pdev) > { > struct max8998_dev *iodev =3D dev_get_drvdata(pdev->dev.parent); > - struct max8998_platform_data *pdata =3D dev_get_platdata(iodev->dev); > + struct max8998_platform_data *pdata =3D iodev->pdata; > struct power_supply_config psy_cfg =3D {}; > struct max8998_battery_data *max8998; > struct i2c_client *i2c; > --=20 > 2.7.4 >=20 --bdmw3abbzs6dkzjg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlueQr0ACgkQ2O7X88g7 +pquGA/+LahovDgQ0kaDuCNocwO1fnE+fKt41U2UXPDIkSQus+r3DVQXJS8an+LU RXpcw9MeLTIkBcWbQaSubxN8MW8IJk6bqEmRZKWTao/N2WQ/scaO/V+eFnja7Ksq mLUbJ5H7B8mZ5pQXepMUxf+o8dfOz5e6wksrO/N9asjgNDZkiiCu9jOHZAYlap4u QB3cnjusfvCVVTkd8kCC4nqc9MAmGHg7wzuFE9sBO3owjI6VQkoEwJr6eYm1ubOv V6uxg0iIBLZiGKLO2zrPJt/p5XT7MVbraX+rXYDrBeGQ6KuN1Fvn3c08DKgmRGKj i6WVmOBz+NWNhI8/dLIV9F+4199TMCcoJ3ktRS4+oElB6AQsKyWzxDk1+X9WwhAY nXjrIa0L4pV66n9/C27Si4YmO/5fr08vNYBLRJIpWW+z/dECTd4hYQDZJtVkit1K z/ruT+lb9wRhKx2hYaG+Mh40SFCbMWys7IGgpX/ifcHpNvh4/5GEmKk8KPfQq9gA sbB8pkkM8wqDvO56bnwr+P3rRBQKBi+O4LQkqv64278gaiEyZWGnCUG4D9ZVVS5H 8efB/YqFpjTxFaeCpaRsRbr/7lXKWueF8mObvDU5iU3JE5QwzfviPbb4obknu3F5 rOZjogzmz8/Ah33xxY++ULXpYnU5Fyz3s3fF9CRFfu3ipGmiQZc= =gYQ8 -----END PGP SIGNATURE----- --bdmw3abbzs6dkzjg--