Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7050409ybi; Thu, 13 Jun 2019 08:44:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8TdwkSbZNMP1fwrV6ODNuaZRuGWnHy3j3KHZBMi8YbY2X7+JDuoaSSSoc0Svg1S2mp4pZ X-Received: by 2002:a65:63cd:: with SMTP id n13mr31240413pgv.153.1560440664748; Thu, 13 Jun 2019 08:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440664; cv=none; d=google.com; s=arc-20160816; b=bpeeZkDvFcH/vEK6McWlh4Ip4SFACGZVU45268HqQYlVW8wlVlEMyiyQQlpmCIwTpQ vP8bp3kff65Iz+6oxugKVn7z3dfZIVjfpVG/0IQzOYSfjca0WHNcsA671J/Qrc1rJGxC gFr+Qbpdhz3qGLfsJbq/CKQQh2wEy2XjKu7VT4W/XkEzkp1kE3t6ENB8u2pqonMs4cpo jm2ZqzeQ/jCgty0a9ytzX+XzqTQ3EcDuqqgAQeNDiNpa35CtvpJD/MzQeAgkwo5Nm6Ls 2ygD5Qeb+bjdPHVM+SkEuL7vkKH/utwjyW3ZNB0zHFQi+tsTL3tJUBBO+lFQqVMtlyHT ePew== 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=C1NIPROtI6ZLwAExYzHz85EL+Be6yhF9pLcKGnfjkKY=; b=Cw8jwDTaw5zsR1ZYLADeaVcpEOd0RjmS44f/mor/TlDF6e3gCtpG5s+fsR/kVi7qqs t3Kd36h6EqzsWTRN7F2FbvKQK7A3MUS8TAVfYwZgRpqgLBFi+58LkGuSb/j7bkTZQP+V 238L2zw24M/3dHHrvObI5IeZz0Rog/eMWN+Y6z3Sj50u1zJEnwvenbaGZoFSukGUzGRK sfwcey/O1LQoJw49sK//bVv15aAqSSyOtlM+OC8iT/CU75UvUdC9FBRUUkjERPTe5KG6 xZPGWd/QG0csLHjCra7dDbeF4o4JQh2uWHqji+7PtUiizttfTQiilGPJVN4eHX/8IBg1 xwCQ== 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 11si86465pgk.422.2019.06.13.08.44.09; Thu, 13 Jun 2019 08:44:24 -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 S1733117AbfFMPlx (ORCPT + 99 others); Thu, 13 Jun 2019 11:41:53 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40612 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731870AbfFMJtt (ORCPT ); Thu, 13 Jun 2019 05:49:49 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 3723725B7FA; Thu, 13 Jun 2019 19:49:47 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id 3D4E1940483; Thu, 13 Jun 2019 11:49:45 +0200 (CEST) Date: Thu, 13 Jun 2019 11:49:45 +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 14/34] misc: tsl2550: simplify getting the adapter of a client Message-ID: <20190613094944.g77bympggzmvssii@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-15-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-15-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:53PM +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/tsl2550.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/tsl2550.c b/drivers/misc/tsl2550.c > index 5b7afd6190fe..09db397df287 100644 > --- a/drivers/misc/tsl2550.c > +++ b/drivers/misc/tsl2550.c > @@ -336,7 +336,7 @@ static struct i2c_driver tsl2550_driver; > static int tsl2550_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 tsl2550_data *data; > int *opmode, err = 0; > > -- > 2.19.1 >