Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7048371ybi; Thu, 13 Jun 2019 08:42:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnrFWkdTl9EUhSCPor7ii/x3S9xG4pJelkGzSfXc6t431+hje91X0jXVCSZ3XRYhi/8qn1 X-Received: by 2002:a17:90a:6505:: with SMTP id i5mr6072352pjj.13.1560440537447; Thu, 13 Jun 2019 08:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440537; cv=none; d=google.com; s=arc-20160816; b=cUf4NmX4t1Lm2HX4NO2js/O3KrbuXz+2fgvSaxJbr/S0xiZ6uGiRgCczsm7CC+kEuS tMt5qqNvs3GeaxKow/XoKkrqGggXeZA8xWqJyvHsjpzEABylc38Nt8MHCvaulKhiNwJG 57yfJnAULoCdFEN6T38rxBD9fKaFAvMMaizE1vNySPo+Jwk+ybZ7YupJqFwUNLUVXFka LMAkvQRxHCNB028VZwem3RspLMKblTA1j9Hu/h6O/p5jhGtW//gqmib+tElWRfDjfCB7 R18zKHknAHu22Dk5WkLU/8VHhOrcD3tYw51TNFUgxHH5fxe7hcomug/xbCPHEvLJGVgq D7xA== 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=YTWcMJvrDz4LrXI22H7QOoBl6aqTIjSBwZzGCby+AKc=; b=ufZFCuaoX8Fio+iGrRNpPdfsprxHoCWtGFT+NuXi54fzpVLlteK3a0QQwr4r6Co8O5 HzmZAU+Iz5TkrsjaS3maRCeKLytji5ik8EDZhm/tMG3zMD72bLIe0QY+S0FkKlGSTqUC K3Ml6BJacdL4fD9PRFxmqAkycWbdM48Qvv8M2iXWy+eWrLpSyv0afaY6cb80AF2Wpta4 pX/iq7rsjQ+XGGbDe6YsD9RFaJPWJvy7dyNSfVlhkLq3u11KcDUxjMjO20ATo7u67WfG NXd01//n384RgZobHrTcH3yCrYmP7MKP7tI+8ZXGhrdjkGcEp/1BT0+EqYalvzoKHcFI iB6Q== 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 b22si79405pgm.202.2019.06.13.08.42.02; Thu, 13 Jun 2019 08:42:17 -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 S1728107AbfFMPkL (ORCPT + 99 others); Thu, 13 Jun 2019 11:40:11 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40818 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731905AbfFMJxL (ORCPT ); Thu, 13 Jun 2019 05:53:11 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 0C6FA25AD8B; Thu, 13 Jun 2019 19:53:09 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id 13CAA940483; Thu, 13 Jun 2019 11:53:07 +0200 (CEST) Date: Thu, 13 Jun 2019 11:53:07 +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 24/34] power: supply: sbs-manager: simplify getting the adapter of a client Message-ID: <20190613095306.buqsgqylp2vm7cbb@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-25-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-25-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:03PM +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/sbs-manager.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/power/supply/sbs-manager.c b/drivers/power/supply/sbs-manager.c > index cb6e8f66c7a2..4c29a89df968 100644 > --- a/drivers/power/supply/sbs-manager.c > +++ b/drivers/power/supply/sbs-manager.c > @@ -317,7 +317,7 @@ static const struct power_supply_desc sbsm_default_psy_desc = { > static int sbsm_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 sbsm_data *data; > struct device *dev = &client->dev; > struct power_supply_desc *psy_desc; > -- > 2.19.1 >