Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7050029ybi; Thu, 13 Jun 2019 08:43:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqweprDE4Z2iBuyjL/nf31cW7zPBmO7FUHThDjv6g0t/b58EmBu+er9fTHMOKSMSKzpvn3Hq X-Received: by 2002:a17:90a:b298:: with SMTP id c24mr6248600pjr.18.1560440637161; Thu, 13 Jun 2019 08:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440637; cv=none; d=google.com; s=arc-20160816; b=jutYU0zrlMtdughVNmxaY4YUaN5m9BOQXWiYRs7H7IQd8CZ5D6UmxJo8GaitOaS8qO OsY3PyC3/Z/ZBD5bes8EvJMPGGoNqa5/Vq6y31mFIw/4gq8vVHb6nPB7csJ4Rc07m0fP sylYzLkQYKd0Pt/6P1s5T3Ik6HInuK7TP1z4MuB3rOIl00gDGb21fXvVQUzn0aM5h0Ls riPW4uJHZom1p/p3ZYnuNhJ7SJa7HLVftYk9T6HPsRweow2ShRevdk+sUUFozZUBIS8T bZrF85XNAQzb+334yLTC4f5yhuuKInKlqHp4aa96VU6N48QfbACvzjqkWLabXsLET6b7 GFlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NiWb0IwLfDZAzTp6O2jZ/qR3FaQ1VdCcIKqryZSEBes=; b=j6g0BVnzXUPy607+SULFYsSpcMC9QMWA13jXr7QrK6oANyW+O/eOedBBmVxVUWoHM3 j1MyvqFyp/saAEUM/flRw0T+CXhuXmrvc9+n/ZkuDPty9d10ckvOwYwLiKFEi7oos0wH uhdeWH8qQPNpC9aOEOjqcM/ghEdmxAt+HQrk+2oUlU3xUE2PPw2Dp5ztqxRHMF2Oo4rt zkEHukx7GFYEBI878HAYEsm/SQmulwfpFCNh8f78WTHeitFzxqoci0QpXL8M8bPbJ8rr neD/ufTTUUGx4o4soYwEb2oZbAxH54jQmX9J2cxE9ecGyeBOqd+MsrjrfwBZInFMsBlH zFeQ== 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 x4si3278212pll.189.2019.06.13.08.43.41; Thu, 13 Jun 2019 08:43:57 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731892AbfFMPlj (ORCPT + 99 others); Thu, 13 Jun 2019 11:41:39 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40652 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731883AbfFMJuS (ORCPT ); Thu, 13 Jun 2019 05:50:18 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id B64A525BE33; Thu, 13 Jun 2019 19:50:15 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id BB7C7940483; Thu, 13 Jun 2019 11:50:13 +0200 (CEST) Date: Thu, 13 Jun 2019 11:50:13 +0200 From: Simon Horman To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Sebastian Reichel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 16/34] power: supply: bq24190_charger: simplify getting the adapter of a client Message-ID: <20190613095013.b2ylxys3yjtwy24v@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-17-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-17-wsa+renesas@sang-engineering.com> Organisation: Horms Solutions BV User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 08, 2019 at 12:55:55PM +0200, Wolfram Sang wrote: > We have a dedicated pointer for that, so use it. Much easier to read and > less computation involved. > > Signed-off-by: Wolfram Sang Reviewed-by: Simon Horman > --- > > Please apply to your subsystem tree. > > drivers/power/supply/bq24190_charger.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c > index cc0dfdc9e85a..ec03521c46d1 100644 > --- a/drivers/power/supply/bq24190_charger.c > +++ b/drivers/power/supply/bq24190_charger.c > @@ -1700,7 +1700,7 @@ static int bq24190_get_config(struct bq24190_dev_info *bdi) > static int bq24190_probe(struct i2c_client *client, > const struct i2c_device_id *id) > { > - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); > + struct i2c_adapter *adapter = client->adapter; > struct device *dev = &client->dev; > struct power_supply_config charger_cfg = {}, battery_cfg = {}; > struct bq24190_dev_info *bdi; > -- > 2.19.1 >