Received: by 10.223.185.116 with SMTP id b49csp2375147wrg; Thu, 22 Feb 2018 12:42:10 -0800 (PST) X-Google-Smtp-Source: AH8x224qoGq5FILCQ8Bqx9Gx/ihIR+TQQ7oPjOEyBGWJ3AsjcrnCLzmnQemhiGgNMVzVzOFOEl/Y X-Received: by 2002:a17:902:6c4f:: with SMTP id h15-v6mr7727151pln.435.1519332130210; Thu, 22 Feb 2018 12:42:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519332130; cv=none; d=google.com; s=arc-20160816; b=M+sflzJKN1Y3lrypPm4E2fzFTiugW+1AyREjnv3l2h4KVnMkho7NZovJch6CZ2f137 N4Z1POyp7ylX4qnhR3bET/vsXOXGz2+5ykVVpQpMOQ8NCpKz0qE6Ln+mSE9kezA9fzwf 9MkNaqpeOCp9TUb6DdiDCpZPJRPgiw2qk2wo4zSywDWKDFOOkZ+okN/iAKPTFQVsKApb tuBCDA4f9UidR5C/iaMzhIyZ37LUOB/MHnrTtZawd0+7tfZBdRwANXXFqfAgk5EDVWo0 1zUjOxqjIplCJe+Dq+Cdp0DDaZJMkNBXZ9Ufhsglf1v3gnAfr+HIKmX5QendJ/4zVt8R nXlg== 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:dmarc-filter:arc-authentication-results; bh=dZl/sMyvoKlCbLUM+3S8oAqKRp9npAUP51pJ8W6RpHM=; b=djOprKUy+D5wCP0sNClvgg4PIB6A7e3JFjUSO71RLrbcGfTukCnEk9MdjRfCf2FKjF Ri5n8XH+wL1lRyOtaIAJZNNpSQuj8Ll5BxUZTZcdNngnysZsJ5QqQmpfuQnTHWWWK69a PpTLpA2vblCPiBLCLBtChHuc+7/c1mgNCnSp9RTxsu/y2IvwrCZVn76vqp0eyetfr4Wr Pi+HrDVjy8FRRS0+DrYKGfGoCbeNSHx8MPAKbc+JDzmzkaBpBb8PtyUh6zyUxhnSeeWq WB97FqHxEaiL3lQFapDLgKvRgb7qvlGfkb8XXkUMZMSCRSPwK/vUj0zo04rVvhFhdoB4 JVPw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f22si561044pff.289.2018.02.22.12.41.55; Thu, 22 Feb 2018 12:42:10 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751519AbeBVUlD (ORCPT + 99 others); Thu, 22 Feb 2018 15:41:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:49600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165AbeBVUlB (ORCPT ); Thu, 22 Feb 2018 15:41:01 -0500 Received: from mail.kernel.org (unknown [185.189.112.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 149FF21741; Thu, 22 Feb 2018 20:40:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 149FF21741 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=sre@kernel.org Date: Thu, 22 Feb 2018 21:40:55 +0100 From: Sebastian Reichel To: Pierre Bourdon Cc: Andre Heider , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] max17042: propagate of_node to power supply device Message-ID: <20180222204055.wvnhlkzdxujriap4@earth.universe> References: <20180220150318.138827-1-delroth@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tdw2b2sbipcr5uis" Content-Disposition: inline In-Reply-To: <20180220150318.138827-1-delroth@google.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tdw2b2sbipcr5uis Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Feb 20, 2018 at 04:03:18PM +0100, Pierre Bourdon wrote: > max17042_get_status uses the core power_supply_am_i_supplied. That > function relies on DT properties to figure out the power supply > topology, and will error out without DT. >=20 > Fixes max17042 battery status being reported as "unknown". >=20 > Signed-off-by: Andre Heider > --- Thanks, queued to power-supply's fixes branch. -- Sebastian > drivers/power/supply/max17042_battery.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/drivers/power/supply/max17042_battery.c b/drivers/power/supp= ly/max17042_battery.c > index 35dde81b1c9b..1a568df383db 100644 > --- a/drivers/power/supply/max17042_battery.c > +++ b/drivers/power/supply/max17042_battery.c > @@ -1053,6 +1053,7 @@ static int max17042_probe(struct i2c_client *client, > =20 > i2c_set_clientdata(client, chip); > psy_cfg.drv_data =3D chip; > + psy_cfg.of_node =3D dev->of_node; > =20 > /* When current is not measured, > * CURRENT_NOW and CURRENT_AVG properties should be invisible. */ > --=20 > 2.16.1.291.g4437f3f132-goog >=20 --tdw2b2sbipcr5uis Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlqPKtcACgkQ2O7X88g7 +prELQ/8C5LDN3ZPRBpPzIyRW3Un64WUpZvmb774d/rM7HlEGYMS43w2eGW/N8uh e2rM577ib3gEqxFBNBjhkWEQTusk8iaUIqYdqbjG/Z0cp+8HJZVjU0n7QujRJkZn 7O2JWJv33XtWzS7mw8fFbD1H0HAqAzTBSoV2Uv6bzisqtY1jO4cpVzJqxTEuySIH ARfZRcwp+GeJFYFg2BunWSiKUfbyTiKK6TNSI02xzgE1K/GoT+7bi7ThdX1ipXbq bP31r1GDm2uGU81564jth8nmBhLc6vLFBbelnoTAn+5C7hN5GcUwo7+LnUyRd2g+ VY4arbm/6NGhz7UaXYNi4EQi2hkiQuMM0nFGuDbiKqz9EFQJo+bPmI+f2mHFu9Ik pCxjhdvEtvZf5lvPcKZPeOuQZNSE3Iv89v76WOB0a7HuoAGYO4att5NSjity7kFa dZ2G/e3B3lEkQ/Vb3y1t/HGi/jihe9vZJHUz/BfRtVKPWEZ2czo1jvQbAzpfBzfu Cv651IXE+xhmzCdfLH7Q4lRAV/6T3Sku2xr907Iyu+3mIuOl83nbvaKc7D+SPH1V uCe/IwPw0hjBl/RVDjCME2uw9ybyg6QnDo3M/W4V7S0mkBNGVf9g0z16hJsZTrKK 5WeKZYzU/bzEoRFc0YG2XCg+uWQasVeJ0LJ1pyW/tAX+TzLAgl8= =maq0 -----END PGP SIGNATURE----- --tdw2b2sbipcr5uis--