Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7046986ybi; Thu, 13 Jun 2019 08:40:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNYBydz9tAW2WYqIcHQs6mrVRo4GAokmzNQDCF4SSpvuiR1/it3orSUC6wg8jH9Uc5fuqB X-Received: by 2002:a17:90a:dd45:: with SMTP id u5mr6066004pjv.109.1560440454140; Thu, 13 Jun 2019 08:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440454; cv=none; d=google.com; s=arc-20160816; b=GfWTxBnLJyCZDxmggHNaygahFnxVGbsneun5v5s8cIcrbSDQOfEj8EOEN72DVpKOnC F536LOUv32La56teYCnVEkcMHKMA1hkjAl7vJ9hmHH0LGI8la9oxUxjalZJkw1vh+gy/ In8qUQGR4ws8wkLdDlOoinBrK8SBnwtvEKoQH2NpGRDaPrc33JyLPkUNg2jZDbijvFQe oaMtsql+pd2T4e1+C6PUbFaCy3M/fV6ens5/YkbWzNxfDPlrwQTNbrdt2AX1uTwloZX+ u2GVOtkS5NDVGIBFKQjgGmdPew00Ubj3qjvlEur2IfiyHp8K8214ayhfqGsZVEQOd498 3Hqw== 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=O0wN2ZhqBWLdy/Jfsex7HCmxtni7pfvIYMa/cv+7iM4=; b=zv2V2l9RJRts4aVS0F+uGTkE/dUjX3kcqIiST9UvNwUpithn/RPd4psdZoCeugWRoZ MG4obasGu8h3d0ctPgkYTK+SG04h3FunSqyWmezPGZCuhcst3SyHHIqerUwe2fXWgx8W FrNX0rj/iHIoo8PjCU8IHJnUcrk2k83p0nNlif1TXtCHi9fmJTMLJOcbUJmyj52BBvtL Md3/wg22vzmqqWQ/nbooiu3Nk0WLgT98z0enQ6UBTwbwqoI7heWS2/tHD9Fa5WDP4F6+ aH+JbCmx3I+GjrIBFfEH59zvtpkEF2Zi+eB8WiR58JWB28n3DvUMgDovmRNmw5lAzF4t Tmzg== 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 v204si103509pgb.80.2019.06.13.08.40.39; Thu, 13 Jun 2019 08:40:54 -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 S1733262AbfFMPjn (ORCPT + 99 others); Thu, 13 Jun 2019 11:39:43 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40900 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731909AbfFMJyP (ORCPT ); Thu, 13 Jun 2019 05:54:15 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id C61BC25BE43; Thu, 13 Jun 2019 19:54:12 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id CD4C1940483; Thu, 13 Jun 2019 11:54:10 +0200 (CEST) Date: Thu, 13 Jun 2019 11:54:10 +0200 From: Simon Horman To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 32/34] staging: media: soc_camera: mt9t031: simplify getting the adapter of a client Message-ID: <20190613095410.3wxbrwy62x5ohwen@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-33-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-33-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:56:11PM +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/staging/media/soc_camera/mt9t031.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/media/soc_camera/mt9t031.c b/drivers/staging/media/soc_camera/mt9t031.c > index 615ae9df2c57..c14f23221544 100644 > --- a/drivers/staging/media/soc_camera/mt9t031.c > +++ b/drivers/staging/media/soc_camera/mt9t031.c > @@ -751,7 +751,7 @@ static int mt9t031_probe(struct i2c_client *client, > { > struct mt9t031 *mt9t031; > struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); > - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); > + struct i2c_adapter *adapter = client->adapter; > int ret; > > if (!ssdd) { > -- > 2.19.1 >