Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7049411ybi; Thu, 13 Jun 2019 08:43:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPPUlw9VhqiSBDQnUSjmtcgqOJEx7VEwsPpZhybhvWnPERTCLHwtkrdaufxt4ylosm4Bx/ X-Received: by 2002:a17:90a:2e87:: with SMTP id r7mr5977273pjd.112.1560440598438; Thu, 13 Jun 2019 08:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440598; cv=none; d=google.com; s=arc-20160816; b=YMav8xB2qTvCc4LuKHGtJDUqcoPMPoA3y8P/3hDMJ8tzcvcsdEeoYqNQVj+6mk3Db4 b5b7GQRLzgM6y5rWdn+MPqMBY0dbWnDxbKW8HRkOB+WtA8W4fiiPIIZ2WvYhuQRZMkpy nVL1RGKN7O8KBAlzih3FuQucitF645KMW5sfH3tg6rnr/EmXDr2JGW8v5HZbhOompecC wKg66WkLLxwflft3iTveP3qKnDBmJzC8LLMvLRLF+hRMLNXEucVhs0uNtmcZHH0ijOPv ZY5LxmEqGxsYCJ4yTkDe3popDnqOE8X4JlsiVtnfl3neDoVdHD9GILJXstpg8TvfuyXT Wo8A== 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=u7YCJLVcSzZs1wOMsy/TOXT34ddIZQWcbM6wcUFHhZ4=; b=HTIg629ClRqjt6T1SYYWx/5BzpsmB1gQPvggJXUAAWaClhwJVtpVA3BwrLf4I8PrDO 8RPuBYDe0ew2F7KKJ/+AV2QBHcE0bwPtPHBlcOEt/QXvSdCij0Lg8yWesLSJTV2UMToD yMFVWe/UCXbs3wTdr1mi+Y54avqIAWVcCBFNEXQsQ40r3toY2rUWtIq8sSZtp32lYqfH a2ELeB1iCFbGe908uYtlbhXtjD8T2fHs7eW4SkxHGWV05fH/3yIbGP/Q+gznrJmlspDJ itxB9Jg+qgZqchIaDNETk353+Iw7i/OWDue87czeVBprGBUjaiKVKXvZ4K4nABk2hDun Sq/w== 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 m12si41437pjq.67.2019.06.13.08.43.02; Thu, 13 Jun 2019 08:43:18 -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 S1727339AbfFMPlF (ORCPT + 99 others); Thu, 13 Jun 2019 11:41:05 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40722 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731894AbfFMJvX (ORCPT ); Thu, 13 Jun 2019 05:51:23 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 55DF525BE33; Thu, 13 Jun 2019 19:51:21 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id 5B790940483; Thu, 13 Jun 2019 11:51:19 +0200 (CEST) Date: Thu, 13 Jun 2019 11:51:19 +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 19/34] power: supply: max14656_charger_detector: simplify getting the adapter of a client Message-ID: <20190613095119.fodosp3uxua54c5q@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-20-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-20-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:58PM +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/max14656_charger_detector.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/power/supply/max14656_charger_detector.c b/drivers/power/supply/max14656_charger_detector.c > index 9e6472834e37..f27b780d2c02 100644 > --- a/drivers/power/supply/max14656_charger_detector.c > +++ b/drivers/power/supply/max14656_charger_detector.c > @@ -251,7 +251,7 @@ static void stop_irq_work(void *data) > static int max14656_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 psy_cfg = {}; > struct max14656_chip *chip; > -- > 2.19.1 >