Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7048671ybi; Thu, 13 Jun 2019 08:42:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0hEbabZhkwrfda2uYY7oI3EPBlaSR5f85n7IaY0w+ZuhMRcJ+32f4WWK1DxOe0+eSV4gz X-Received: by 2002:a17:90a:3225:: with SMTP id k34mr6211902pjb.31.1560440553194; Thu, 13 Jun 2019 08:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440553; cv=none; d=google.com; s=arc-20160816; b=DmmNKvGERX7urQ5urUh6Glj5wBu9Wt9x83RmIkXI41QPUa+oZIXcSYb5ALHOkizMHU Uwh4Y0WBHX8QlEzzuw/FYjmsdesTN/jL1A6vcEDeMpOtQoesgz4erNCXn/EVwaCaKF2T SSHXfe4fWH4Y7BKcC5s+psik1jfc/MaPaP607j8Gpj55EY6o6jlJ5j9rmbi0ixDbrN8s DNqbmhpXrfvbdC0DPEDsJDAwsJ61pTfJheK9hZqGR+pLSY5wXRVKOzSA7xP7fwYwU5IQ 8kitIa/taWy/QyVgVIBiHaggM795YoIC+yoTEdg/ld0Q18tJZiBpymg3tC5Tf2KJCpvR xcMQ== 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=BKSR+4WYljioq28CEjCKIGvgPPMw+LTgVpc4oG5Nab8=; b=PCKo/XRpoaU0GIfNKU2qsgwnIJ4jZmZSmyGj1P3l5VWv2AZ4Bt+Gma93X8zr0+UM7f UHgSCLrQPPX3xkBWVwaUplVLfYYwXasY/wZsuk0zkk+JZJPKtvRqSBLa5yZfWtsRHe1E siYSXQ2GKvd7+GPY7wtvNmsx98/LWqsHFgvd8phuCCXpmH+LOyuZc2TKAnKEL4wCrEDj nfj5CuYhpapeSXGaYFBrGOTls/F131NKmpi81WoyZ/mHK5JFcYiGgoIEEiaaiZcNQhkx Reg9GBPyS9LeuJS3kIHH+Pd06lr+IlyXAg4lyg+XjMCDdHVUA6h1Ylo6I2p1TPomVTjE wMTA== 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 o188si3532475pfo.219.2019.06.13.08.42.18; Thu, 13 Jun 2019 08:42:33 -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 S1729143AbfFMPka (ORCPT + 99 others); Thu, 13 Jun 2019 11:40:30 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40806 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731901AbfFMJw4 (ORCPT ); Thu, 13 Jun 2019 05:52:56 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id E37B725AD8B; Thu, 13 Jun 2019 19:52:53 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id E9137940483; Thu, 13 Jun 2019 11:52:50 +0200 (CEST) Date: Thu, 13 Jun 2019 11:52:50 +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 23/34] power: supply: rt9455_charger: simplify getting the adapter of a client Message-ID: <20190613095250.ddho6vwgooksljmm@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-24-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-24-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:56:02PM +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/rt9455_charger.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/power/supply/rt9455_charger.c b/drivers/power/supply/rt9455_charger.c > index 40a9d329418a..29161ae90245 100644 > --- a/drivers/power/supply/rt9455_charger.c > +++ b/drivers/power/supply/rt9455_charger.c > @@ -1584,7 +1584,7 @@ static const struct regmap_config rt9455_regmap_config = { > static int rt9455_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 rt9455_info *info; > struct power_supply_config rt9455_charger_config = {}; > -- > 2.19.1 >