Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7050807ybi; Thu, 13 Jun 2019 08:44:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzH7jO6H3AmCbSEiEBKhK+y3Byg6DY1tYtf6VwAhzbfJoNWrdnyqaHRedZPe0yD5IqTcStY X-Received: by 2002:a17:902:9a06:: with SMTP id v6mr70716696plp.71.1560440691489; Thu, 13 Jun 2019 08:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440691; cv=none; d=google.com; s=arc-20160816; b=UM4A+akbNrXK5TcpNT43+l+ItitT57F94lJSFdJARpnxeNB9hrY3COQ7xZ/YjV+cMP RKrxmCMgZ1ha1SzlnOtMjrlaycXKpIkw7Lk+7nS3j5Czt3FqQDx9f/DJl53ddL1I+KJ6 1BO6mJTmzOIEduzp6LxFCQwIhOXqQMNFC2EJcSCfTYiem6KiPboaFooe8C3GJxOFA2Ir SPp28PJ5fzeVWGKLX9kL1B5fk1AJ7P2pP81p6AZL2UIz+Ip5+hoieGleb5hTU11/51q5 Ta5giAs5mVPtVVH3okfcBLrSj7xHeVD5KjlhjQtn0tS4DzCApYxWD5M0Scc8/WqcDZ3k rVWg== 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=N3SZ+2PJOtDcQY2poyHDg9/WjFqd+ahzwbAmkm6SDz4=; b=Y2+mipknietwhN1jMwAP3PprWfSnOAaz3AG2hCWLy3Bfwn4eXgHccXBf+C9PlGnLzW K/YBCPIxeCgStzKthFVfGDalzKYlrBEVLhrMfEa62bGXaHCAm53KKEL9t3Wa6c/9Msst BuehaS9UVPRR5KXG7rKmUyzMuIxwAvvOLYwb2MYg+FmXebMMSuIgVAMHg8/8aNeIcfJK A/wyaJ0jegxxFGV81jPXELtINzvBkMFj58FrFK6ePNFxSCuOroe7LKngNgAHf4Mhc2L2 7S8dt2CWFCQI0cqDOLv2ADAhat1GOUOKjE3keHYYy95VDofndTMov00Uw02LhcsbPkAw LvMQ== 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 k24si3493715pfk.195.2019.06.13.08.44.36; Thu, 13 Jun 2019 08:44:51 -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 S2389031AbfFMPnA (ORCPT + 99 others); Thu, 13 Jun 2019 11:43:00 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40520 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731841AbfFMJr5 (ORCPT ); Thu, 13 Jun 2019 05:47:57 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id DAB8F25B7FA; Thu, 13 Jun 2019 19:47:54 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id DC5BD940483; Thu, 13 Jun 2019 11:47:52 +0200 (CEST) Date: Thu, 13 Jun 2019 11:47:52 +0200 From: Simon Horman To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/34] media: i2c: mt9m111: simplify getting the adapter of a client Message-ID: <20190613094752.6hd37fqtxponpzz2@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-9-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-9-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:47PM +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/media/i2c/mt9m111.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/i2c/mt9m111.c b/drivers/media/i2c/mt9m111.c > index 5168bb5880c4..a9da43316504 100644 > --- a/drivers/media/i2c/mt9m111.c > +++ b/drivers/media/i2c/mt9m111.c > @@ -1235,7 +1235,7 @@ static int mt9m111_probe(struct i2c_client *client, > const struct i2c_device_id *did) > { > struct mt9m111 *mt9m111; > - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); > + struct i2c_adapter *adapter = client->adapter; > int ret; > > if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_WORD_DATA)) { > -- > 2.19.1 >