Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7050427ybi; Thu, 13 Jun 2019 08:44:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyC56nkUsPOIx16N0CJsNGzyn7Erc5QuxGtjWeh3MgzDCAfr+BAswWo6UddPwpVkciHHBNT X-Received: by 2002:a62:1a93:: with SMTP id a141mr94383227pfa.72.1560440667287; Thu, 13 Jun 2019 08:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440667; cv=none; d=google.com; s=arc-20160816; b=VyUKqur+iNviPVQXtBfgAiXhGlMwN8DNl3Brlq16aZVCFbTcY7B+inRjrXZkRSq98a 7BT83+aq7zlUWlpanBKMJVNpUCwPuv1719ipXclBDwwPt4k4OCbBsqcglXqJI4D33JFQ YGfY2TIDeXrFKm3NTAG0xUOZbjdJffucn2mMndNrvjEvjyqq7Ao+IabyzZp4VVb4ur8u a6Wx2VlhAX7n0grK78VN3lnnEn/EaDoexmk4QXFPw9rqQinUr5ADIPD9Mh0i/2bg0Y0y bjMot9Hro3Ih+5MfyZeNOoeZHBvwlc9azmZDi+TF7fJ6x/aBGws3HEQWonaPZCLX5ud9 fAnA== 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=V13MQet+Mtpjp7WiLtJ6PC+FuSKv7wVXjjxc/GsNkkU=; b=Zt+a7Oo7NY3dv/zxsWr04EvW3yNvV96YeDzo1NM0wpIB+GMoxgtkzwgpIw9LtiTaAB AnxgOEuWran0z/LVZjblx9nygD+gQMdU0UqFqG/F7NkKPCb10M2kEfWCYIpEpdYZDEEs x2eZ5/FyfkfSbRe6/fACYtvo9n9RNA+NTD6ufgBscgzTKipjSxMoSwy2NuCaPe6HWCOd hPj8O0ZbNYL/m+2x9XNljIb0qYvgsNkCj1UU2isoTEQoQFE9XKsqfAPJtv5TzWGu2q6x uyzx5F6VPCbjOX/b8pVHrwDqOWGxXKpoINPDLbKYdEKAv0GoGDok8UVkdauJcCxzPmNz 1pHg== 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 n2si77725pgv.590.2019.06.13.08.44.12; Thu, 13 Jun 2019 08:44: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 S1728656AbfFMPmK (ORCPT + 99 others); Thu, 13 Jun 2019 11:42:10 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40596 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731867AbfFMJtd (ORCPT ); Thu, 13 Jun 2019 05:49:33 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 5A8A725B7FA; Thu, 13 Jun 2019 19:49:31 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id 63A87940483; Thu, 13 Jun 2019 11:49:29 +0200 (CEST) Date: Thu, 13 Jun 2019 11:49:29 +0200 From: Simon Horman To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [PATCH 13/34] misc: isl29003: simplify getting the adapter of a client Message-ID: <20190613094929.f7f3faix63ystfic@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-14-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-14-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:52PM +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/misc/isl29003.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/isl29003.c b/drivers/misc/isl29003.c > index 3431a825f24e..5d0d0c3bad85 100644 > --- a/drivers/misc/isl29003.c > +++ b/drivers/misc/isl29003.c > @@ -377,7 +377,7 @@ static int isl29003_init_client(struct i2c_client *client) > static int isl29003_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 isl29003_data *data; > int err = 0; > > -- > 2.19.1 >