RE: [PATCH] [media] soc-camera: Correct icl platform data assignment
- Subject: RE: [PATCH] [media] soc-camera: Correct icl platform data assignment
- From: Albert Wang <twang13@xxxxxxxxxxx>
- Date: Mon, 4 Jun 2012 08:33:47 -0700
- Accept-language: en-US
- Acceptlanguage: en-US
- Cc: "linux-media@xxxxxxxxxxxxxxx" <linux-media@xxxxxxxxxxxxxxx>
- In-reply-to: <Pine.LNX.4.64.1206041425010.22611@axis700.grange>
- Thread-index: Ac1CTZ2nBuz71QQYRkukO+FvdTfm6AAGQVdQ
- Thread-topic: [PATCH] [media] soc-camera: Correct icl platform data assignment
Hi, Guennadi
Yes, maybe you are right.
I checked some i2c client drivers, they all changed it to:
struct soc_camera_link *icl = soc_camera_i2c_to_link(client);
We also can update our client driver, but could you please explain why do you change it?
Thank you very much!
Thanks
Albert Wang
86-21-61092656
-----Original Message-----
From: Guennadi Liakhovetski [mailto:g.liakhovetski@xxxxxx]
Sent: Monday, 04 June, 2012 20:29
To: Albert Wang
Cc: linux-media@xxxxxxxxxxxxxxx
Subject: Re: [PATCH] [media] soc-camera: Correct icl platform data assignment
Hi Albert
On Mon, 4 Jun 2012, Albert Wang wrote:
> This patch corrects icl platform data assignment
>
> from:
> icl->board_info->platform_data = icl;
> to:
> icl->board_info->platform_data = icd;
>
> during init i2c device board info
No, I don't think this is right. If it were right, all soc-camera systems would be broken for a couple of kernel versions. I think, you have to update your drivers...
Thanks
Guennadi
>
> Change-Id: Ia40a5ce96adbc5a1c3f3a90028e87a6fdbabc881
> Signed-off-by: Albert Wang <twang13@xxxxxxxxxxx>
> ---
> drivers/media/video/soc_camera.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/media/video/soc_camera.c
> b/drivers/media/video/soc_camera.c
> index 0421bf9..cb8b8c7 100755
> --- a/drivers/media/video/soc_camera.c
> +++ b/drivers/media/video/soc_camera.c
> @@ -991,7 +991,7 @@ static int soc_camera_init_i2c(struct soc_camera_device *icd,
> goto ei2cga;
> }
>
> - icl->board_info->platform_data = icl;
> + icl->board_info->platform_data = icd;
>
> subdev = v4l2_i2c_new_subdev_board(&ici->v4l2_dev, adap,
> icl->board_info, NULL);
> --
> 1.7.0.4
>
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Input]
[Video for Linux]
[Mplayer Users]
[Linux USB Devel]
[Linux Audio Users]
[Photos]
[Yosemite Photos]
[Linux Kernel]
[Linux SCSI]
[XFree86]
[Devices]
[Yosemite Backpacking]