Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7050711ybi; Thu, 13 Jun 2019 08:44:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBht65JQpC2QtNq1sgoPB9vFyU/fMnuABai0G0PSSrAznIoiCKu3CvXdrTzt9KYfGTQ9Ij X-Received: by 2002:a62:65c7:: with SMTP id z190mr94263561pfb.73.1560440684126; Thu, 13 Jun 2019 08:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440684; cv=none; d=google.com; s=arc-20160816; b=wYR1+S1CdkOKCgzxmtcnyjZy7QIxSqo73sM+Ukk1hCEOkeTOOLrAfdcscPB2zgIBZq jiXh+JhI3k6Mlyh1EykqjzyaO9B5srPftJoiRmTOFP/0ulteIC7WmmUOYmi9+azw6K+w SOdHbkXvPBGbXsDWLLtTPQtb3djgkjPriFaCbjMqLqOm99C7PwXsE3Ix1YmQ8QPwcZFs QnchnxBKW9rL8lqWOPvkaXbJIY0q9+yddgYpzAbj9skR6KSsfxv4Ij85TvF9jZ4Ub533 Vh5dvqBkjUIup+2e6sBuj4aU/6HW7c0m985uHYdIaaxfE9zBxhFghosjANK7F5dPjfUW NNgg== 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=ZGGfiz5lXxC4KfDtPKeCdp2RfQggpIXzoefCdA+ZNaw=; b=ScNjvoVibOxSTvOCz9BGzVQC4S7jLv/TT4oFcquD+nmOGruBZZ7xcwWg7g0BpxE3fk syNPGk4Xj+qT1+jz7f6z+XIFi0EFu18Ffe5WjKGwiBIoiS74eqldCP9Pj8WvPAwTSoQe XsIiTLc0Z89eq1sfSIthlI5hWKH+90lxJ4MR2cXdeexZ/YqFKdVbmIrxXdwLe/MrIq3T uwfO3BqQeNMKu3K72qG7rYMndRsEurvBfhjQ6lpsNMgU61Tf614T/kYqCKeoehEER/q1 f0HYpuYJS/k2c7M59uHNdG8MC5h1Q0t7yvevVVX4qQOJOj7BoUO7TyFxofrC2tAnPeA8 180A== 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 cl7si3650320plb.267.2019.06.13.08.44.29; Thu, 13 Jun 2019 08:44:44 -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 S1731854AbfFMPmc (ORCPT + 99 others); Thu, 13 Jun 2019 11:42:32 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:40554 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731861AbfFMJsv (ORCPT ); Thu, 13 Jun 2019 05:48:51 -0400 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id BF2E525B7FA; Thu, 13 Jun 2019 19:48:48 +1000 (AEST) Received: by reginn.horms.nl (Postfix, from userid 7100) id C67CB940483; Thu, 13 Jun 2019 11:48:46 +0200 (CEST) Date: Thu, 13 Jun 2019 11:48:46 +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 11/34] media: i2c: tw9910: simplify getting the adapter of a client Message-ID: <20190613094846.bveex5pb7qfw7pmi@verge.net.au> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> <20190608105619.593-12-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190608105619.593-12-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:50PM +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/tw9910.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/media/i2c/tw9910.c b/drivers/media/i2c/tw9910.c > index 4d7cd736b930..a25a350b0ddc 100644 > --- a/drivers/media/i2c/tw9910.c > +++ b/drivers/media/i2c/tw9910.c > @@ -934,8 +934,7 @@ static int tw9910_probe(struct i2c_client *client, > { > struct tw9910_priv *priv; > struct tw9910_video_info *info; > - struct i2c_adapter *adapter = > - to_i2c_adapter(client->dev.parent); > + struct i2c_adapter *adapter = client->adapter; > int ret; > > if (!client->dev.platform_data) { > -- > 2.19.1 >