linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: linux-i2c@vger.kernel.org,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	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
Date: Thu, 13 Jun 2019 11:48:46 +0200	[thread overview]
Message-ID: <20190613094846.bveex5pb7qfw7pmi@verge.net.au> (raw)
In-Reply-To: <20190608105619.593-12-wsa+renesas@sang-engineering.com>

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 <wsa+renesas@sang-engineering.com>
> ---

Reviewed-by: Simon Horman <horms+renesas@verge.net.au>

> 
> 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
> 

  reply	other threads:[~2019-06-13 15:42 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-08 10:55 [PATCH 00/34] treewide: simplify getting the adapter of an I2C client Wolfram Sang
2019-06-08 10:55 ` [PATCH 06/34] media: i2c: ak881x: simplify getting the adapter of a client Wolfram Sang
2019-06-13  9:47   ` Simon Horman
2019-06-08 10:55 ` [PATCH 07/34] media: i2c: mt9m001: " Wolfram Sang
2019-06-13  9:47   ` Simon Horman
2019-06-08 10:55 ` [PATCH 08/34] media: i2c: mt9m111: " Wolfram Sang
2019-06-13  9:47   ` Simon Horman
2019-06-08 10:55 ` [PATCH 09/34] media: i2c: mt9p031: " Wolfram Sang
2019-06-08 11:42   ` Laurent Pinchart
2019-06-08 10:55 ` [PATCH 10/34] media: i2c: ov2640: " Wolfram Sang
2019-06-13  9:48   ` Simon Horman
2019-06-08 10:55 ` [PATCH 11/34] media: i2c: tw9910: " Wolfram Sang
2019-06-13  9:48   ` Simon Horman [this message]
2019-06-08 10:56 ` [PATCH 31/34] staging: media: soc_camera: imx074: " Wolfram Sang
2019-06-13  9:53   ` Simon Horman
2019-06-08 10:56 ` [PATCH 32/34] staging: media: soc_camera: mt9t031: " Wolfram Sang
2019-06-13  9:54   ` Simon Horman
2019-06-08 10:56 ` [PATCH 33/34] staging: media: soc_camera: soc_mt9v022: " Wolfram Sang
2019-06-13  9:54   ` Simon Horman
2019-06-09 16:37 ` [PATCH 00/34] treewide: simplify getting the adapter of an I2C client Peter Rosin
2019-06-10  7:15   ` Wolfram Sang
2019-06-27 18:28 ` Sebastian Reichel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190613094846.bveex5pb7qfw7pmi@verge.net.au \
    --to=horms@verge.net.au \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=wsa+renesas@sang-engineering.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).