Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7049507ybi; Thu, 13 Jun 2019 08:43:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6xGnerFKrnNHJZsFKugx178hE8ekMuyzZVMoIitgPw7VYeXxjDPhi4c8SyX7PMacGQKSo X-Received: by 2002:a62:b60e:: with SMTP id j14mr23298582pff.54.1560440604925; Thu, 13 Jun 2019 08:43:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440604; cv=none; d=google.com; s=arc-20160816; b=oxudXxNmBcH7cCCApIRSdglaZtQmiR65hMYGlMexSlUO5miHIr9a2NUmTqYk8g5CKN Cka8uNwHqWYk+GigSDbPac/EgTO8Nvfo0ImjduWxAnotp3kZpKLpFwDoVkIKaVo0P+hz eJLWxxWufKHk32UhlImfx0h0r6ebCBIep7piby0M+MuX+6ZUvpbqk7Rn8n9T/zCB19Nw aoNcYQ8e7kdUlSxZ+otOiUcovsVA8RDhKvSW/U+MdHTAX2PLu5Dj9CbFazJWyfjbnviP w8l47SCgxEIlj2uCzz0oI/dqlpcpY+v0WrjYD6Ur02mLdoYKbFWS+9uvWMsSLNOfjpn1 65lA== 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=LwNP/E3FM0EmHATOhT3Q4nD63pixSOEhE2yn7F/9+eM=; b=ecJorF0+fRtT9PR+x5LI6i7ehyNJq3CYUUBeYu4MonRkDF5wk+pR3SnWnnt1pIY9Hk huP0z8V314Jrh0AYdTi+8HkzGsGScM9CmxCJunhTn82Yw+SKLFN64IQ0WdWSW4jxCu5C lyp8agpA3w093fuya1PleAIK4Gz/24BObqfFQYZUjvUL4iKIdSAdC31zWmOMALxAHVMG T9pHOFw18JxyEJEc9h9CmRFcqp2hhDPO85mXm49FD66YS+itBX3oR7501C+T6WNfVJtb hzpDdW+foBTeu5yvxqCoLl4pvNRc2CGpKNcMKf6wyqVqRwtVDVqiAVXPw7r8e2j3NTTn w3Og== 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 w10si113190pgl.288.2019.06.13.08.43.09; Thu, 13 Jun 2019 08:43:24 -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 S1730122AbfFMPlM (ORCPT + 99 others); Thu, 13 Jun 2019 11:41:12 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40710 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731890AbfFMJvC (ORCPT ); Thu, 13 Jun 2019 05:51:02 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id BF06325BE33; Thu, 13 Jun 2019 19:50:59 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id C70FF940483; Thu, 13 Jun 2019 11:50:57 +0200 (CEST) Date: Thu, 13 Jun 2019 11:50:57 +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 18/34] power: supply: bq25890_charger: simplify getting the adapter of a client Message-ID: <20190613095057.ycf4dxftudnt5ype@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-19-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-19-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:57PM +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/bq25890_charger.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c > index b2ff82b4707a..d333f2b321b9 100644 > --- a/drivers/power/supply/bq25890_charger.c > +++ b/drivers/power/supply/bq25890_charger.c > @@ -817,7 +817,7 @@ static int bq25890_fw_probe(struct bq25890_device *bq) > static int bq25890_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 bq25890_device *bq; > int ret; > -- > 2.19.1 >