Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7048546ybi; Thu, 13 Jun 2019 08:42:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwW6OceD4JETP6TDTduxJsMgq3ZCRN7TGecYYu0bUKF6NetledKvzD2r6X/NSF9cokE56wx X-Received: by 2002:a17:902:42d:: with SMTP id 42mr84812694ple.228.1560440547275; Thu, 13 Jun 2019 08:42:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440547; cv=none; d=google.com; s=arc-20160816; b=EbOsaFUe/4DgSAoe3oxr5E1UZ5QBEx+dR6oKXZTFxZdOmbIPcHtI4OBGbym0Nn4cE8 OxJKSFdM91th/lTJSK7xFzu+kQcWBgapXyJhLba7wt9HBBzzN0qUKjR5MlPQPWJ7nZN9 DXb7ykgys1YrJfRLqSiHreEux3Mk9/FI4EqgvfTihAAApLJwEbL4bGSm10WoIfrUarTf Sv8sXS1N6p/cl5K7zORZEO5fo+fkXl8fJrYy5TmXnTHqAIioflHyaToqMlDkIB0Cr+T4 6iaYf8+MhcjEaXkEFy3BOI+I7OIRX3Vu9oRNJn67y7Yw2nuKt3Auyo9vp2crxtfysY33 XuoA== 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=i2GSYgbG8RIplJapUty3E4SYDnp1IlWNLtDsbfqyGOM=; b=a+nlxQVo2OFKkRPiJTgAS6N6u5PgSnDLIa5jBw6o7TT8uHQr8DGQpMaItKXJmilZOJ LyftMnJIjFkz+qmFXj7giuyW2vC/mnW7h+tUOydnAEGEP15TCGwu+DaNj1Z6qOxx9NIi Bdjf1Y8BBFAzpUrZxT06D5XaSevtjllTOzxRPHktTCijLekDEh9fDd8H+spvw0sjbGc+ 303RvEFUYey0nt/X8D8KtsaHR9gBA0hvhe7YLqQT+nOOZD9dLEIVc5gZkBC844my5bVX 0N0lh0JP7rFKSCb8R6tVgQqBv/21UD8YmwT6k6Fl2E5D9FQA5pNw6rMn8NmmdUkN2Mii k1zQ== 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 f7si77171pgd.155.2019.06.13.08.42.12; Thu, 13 Jun 2019 08:42:27 -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 S1731941AbfFMPlY (ORCPT + 99 others); Thu, 13 Jun 2019 11:41:24 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40690 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731885AbfFMJuj (ORCPT ); Thu, 13 Jun 2019 05:50:39 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 264A025BE3A; Thu, 13 Jun 2019 19:50:37 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id 27FDC940483; Thu, 13 Jun 2019 11:50:35 +0200 (CEST) Date: Thu, 13 Jun 2019 11:50:35 +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 17/34] power: supply: bq24257_charger: simplify getting the adapter of a client Message-ID: <20190613095034.3vebzbzsacizlfgr@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-18-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-18-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:56PM +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/bq24257_charger.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/power/supply/bq24257_charger.c b/drivers/power/supply/bq24257_charger.c > index 7eb58f10e092..eb151687beb3 100644 > --- a/drivers/power/supply/bq24257_charger.c > +++ b/drivers/power/supply/bq24257_charger.c > @@ -950,7 +950,7 @@ static int bq24257_fw_probe(struct bq24257_device *bq) > static int bq24257_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; > const struct acpi_device_id *acpi_id; > struct bq24257_device *bq; > -- > 2.19.1 >