Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7049860ybi; Thu, 13 Jun 2019 08:43:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhejqNPaSCUN8XinqMtr2SCuSf4cv2apOzX5LpoW6f+vCg80D81R2dOOHvk84u69N5V9oS X-Received: by 2002:a63:29c2:: with SMTP id p185mr2207654pgp.216.1560440627955; Thu, 13 Jun 2019 08:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440627; cv=none; d=google.com; s=arc-20160816; b=fRRC8Vy+diKmSPu5Z3ClRDfmnNZ+nsiLpUZs96+EkyocvOyHHKK6G3hbfzpBRg86Vu jZwjBkXj3ZyRVX4YET/IckwIS75zTTOTktcOMs0gM1dGRvxXFCgWSOhemSlTECrIoN9A JfFc9qR2QBPGHD8mVpOfR13763JS+VnXIc7IQRXVf6sJnetVpX62IrFdzGjkHzE+dOJq e6AK5oWM5Zw8F9cIFXy8b/17aKZvwuHa2bic0ZtJcuzcOfsW7YSx4KMaodKk+xyD/+A2 kxtR1MtZc/dq8UVRuDdrjHNnFQrJ+4vIR090D/DTfvtnK35LoPO1udnNVe77G6FQNXwU gY3w== 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=1LCBmcZt6fA7T+Utd86zzjq9u+a6sqib6RMyf6tYogI=; b=VQcLGwZONsvp6r+j9Y+kCZomdcj+E0w1rN8a7/kea7gAKaMJfmsL3hJ6MzXlmb0rTu Ol9o9GhT023Ggb9GCrwedpITu9sqnAxMmzjZgI66LTAKAmqbh4vmgkshO8vYAzjYy/R3 eD3+Zl6xTlFSdqvmqanffRi7BLD3TlatCtlWNkOI9lmVQ8QtNIdezuxtiEvQAsvN1b+l 2ZuvEcyijeJbjwOYfBghPnl2nOqqfdL5VEqaTQY/VaZRwjrxJ3biTpW3IKfkLAjkftH9 yrPAHYrnSYYA3bE/CxzRl5aGxVYrRD/OfxWlqUigfSUSLzTcldr9iu6+x+eBdFHma+dj oANA== 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 t4si36408pjq.54.2019.06.13.08.43.31; Thu, 13 Jun 2019 08:43:47 -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 S1728713AbfFMPmR (ORCPT + 99 others); Thu, 13 Jun 2019 11:42:17 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40568 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731863AbfFMJtQ (ORCPT ); Thu, 13 Jun 2019 05:49:16 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id F09A825B7FA; Thu, 13 Jun 2019 19:49:13 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id 01C3F940483; Thu, 13 Jun 2019 11:49:11 +0200 (CEST) Date: Thu, 13 Jun 2019 11:49:11 +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 12/34] misc: fsa9480: simplify getting the adapter of a client Message-ID: <20190613094911.ht6eit74uhmee25b@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-13-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-13-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:51PM +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/fsa9480.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/fsa9480.c b/drivers/misc/fsa9480.c > index 607b489a6501..a8126790f8de 100644 > --- a/drivers/misc/fsa9480.c > +++ b/drivers/misc/fsa9480.c > @@ -410,7 +410,7 @@ static int fsa9480_irq_init(struct fsa9480_usbsw *usbsw) > static int fsa9480_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 fsa9480_usbsw *usbsw; > int ret = 0; > > -- > 2.19.1 >