Re: [PATCH] v4l2-subdev: add a v4l2_i2c_new_dev_subdev() function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 21 Apr 2009, Hans Verkuil wrote:

> 
> > On Tue, 21 Apr 2009, Hans Verkuil wrote:
> >
> >>
> >> > Video (sub)devices, connecting to SoCs over generic i2c busses cannot
> >> > provide a pointer to struct v4l2_device in i2c-adapter driver_data,
> >> and
> >> > provide their own i2c_board_info data, including a platform_data
> >> field.
> >> > Add a v4l2_i2c_new_dev_subdev() API function that does exactly the
> >> same as
> >> > v4l2_i2c_new_subdev() but uses different parameters, and make
> >> > v4l2_i2c_new_subdev() a wrapper around it.
> >>
> >> Huh? Against what repository are you compiling? The v4l2_device pointer
> >> has already been added!
> >
> > Ok, have to rebase then. I guess, it still would be better to do the way I
> > propose in this patch - to add a new function, with i2c_board_info as a
> > parameter and convert v4l2_i2c_new_subdev() to a wrapper around it, than
> > to convert all existing users, agree? Do you also agree with the name?
> 
> I like the idea of passing in a board_info struct instead of an
> addr/client_type.

And converting v4l2_i2c_new_subdev() to a wrapper is ok too?

> Just make sure when preparing a patch for the v4l-dvb
> repo that this new function is for kernels >= 2.6.26 only.

Why and how? I am not adding any new structs or fields with this patch, am 
I? So it should build with all kernels, with which the current 
v4l2_i2c_new_subdev() builds.

> I prefer a name like v4l2_i2c_subdev_board(). I will probably at some
> stage remove that '_new' part of the existing functions anyway as that
> doesn't add anything to the name.

Ok, will do.

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

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux