Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7050982ybi; Thu, 13 Jun 2019 08:45:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVDDQ0m1+ZXAwp0wiB492w8mHeAy5uwAY526DPl45M5QonWaMhNd879Odc6UrJBNM7nOXk X-Received: by 2002:a65:524b:: with SMTP id q11mr19248661pgp.384.1560440702243; Thu, 13 Jun 2019 08:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440702; cv=none; d=google.com; s=arc-20160816; b=Wn1B3vNNaaRHHxKswaugOmL88drD+d6YqgLOyLWzip3J1BZWXHdzN7bPTIlWW6MlNe /am3rOCZyjWXMHNZJI+nc3yaASI6ol0YTza1sGPOcqqZf6kVsXL6lgKNIoLOd+dTcVTR IQjsrjDNfeUql1FGOrtfyCnu+d3Hy1qdlJzzm+4E2cO+VaOAQRhY3C1D327Iue5HQWjJ rX8b9Gh/m+IPi98Xb5vxeRuFPWCuelRUMa59bwp1BcScf8AUhSbNni/fpS/PVjrFlKPf CmXQALxd5JazxteLVIqmBfQIwhh55BBbulQOPwvm91bHEHmjBPwT3K/m2woelUBmkGEQ P7DQ== 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=LGCmqQ6Vbl6+TGDYgMjC14295rEjlmqBYPwHTvXl7U4=; b=UUdIgrgYcULovvOSOzdl4yqYH3fGYmOgNVPDCRBRxK3lXd7J8u29wiBcjAUhijJ68M S47YUmP+YAx4J1tZ1QtW0MrwwsZ1lqi/s0M+euvqsnNLC2+Cv0C9d4hcLH4eZy9U4ncv izhxzokbW8WAO3A1W2YhVMZOqi3X6Kn/T0KCjayMhxkjDgMGwWUr+0At7RmHOfloB7a6 vqQqr+9Eg35zjgKdRWIt64iR875/ZGm75vI8Yq0+jzN3SOtQdV7LU+BfqsZTppg0l+TH HdZ1M6Yc+UvgDjhqEIMrGfmz0cQ2/+PvezNiiZnma7ZPPYTf0u4rwl6kchUV5nSokyXJ Gp1w== 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 e4si20750pjj.34.2019.06.13.08.44.46; Thu, 13 Jun 2019 08:45:02 -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 S1727354AbfFMPnC (ORCPT + 99 others); Thu, 13 Jun 2019 11:43:02 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40494 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731836AbfFMJrW (ORCPT ); Thu, 13 Jun 2019 05:47:22 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 007F825B7FA; Thu, 13 Jun 2019 19:47:20 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id 0E5E0940483; Thu, 13 Jun 2019 11:47:18 +0200 (CEST) Date: Thu, 13 Jun 2019 11:47:17 +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 06/34] media: i2c: ak881x: simplify getting the adapter of a client Message-ID: <20190613094717.c7vc52wx5gax7psn@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-7-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-7-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:45PM +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/ak881x.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/i2c/ak881x.c b/drivers/media/i2c/ak881x.c > index 30f9db1351b9..09860603da64 100644 > --- a/drivers/media/i2c/ak881x.c > +++ b/drivers/media/i2c/ak881x.c > @@ -232,7 +232,7 @@ static const struct v4l2_subdev_ops ak881x_subdev_ops = { > static int ak881x_probe(struct i2c_client *client, > const struct i2c_device_id *did) > { > - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); > + struct i2c_adapter *adapter = client->adapter; > struct ak881x *ak881x; > u8 ifmode, data; > > -- > 2.19.1 >