Re: [PATCH 1/1] v4l: drop v4l2_buffer.input and V4L2_BUF_FLAG_INPUT

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

 



Hi Laurent,

On Mon, Apr 30, 2012 at 02:48:23PM +0200, Laurent Pinchart wrote:
> On Monday 30 April 2012 15:40:24 Sakari Ailus wrote:
> > Remove input field in struct v4l2_buffer and flag V4L2_BUF_FLAG_INPUT which
> > tells the former is valid. The flag is used by no driver currently.
> > 
> > Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxx>
> > ---
> > Hi all,
> > 
> > I thought this would be a good time to get rid of the input field in
> > v4l2_buffer to avoid writing more useless compat code for it --- the enum
> > compat code.
> > 
> > Comments are welcome. This patch is compile tested on videobuf and
> > videobuf2.
> 
> I'm all for this. As far as I know, the field was only useful for a single 
> out-of-tree driver which is long dead now.
> 
> >  drivers/media/video/v4l2-compat-ioctl32.c |    8 +++-----
> >  drivers/media/video/videobuf-core.c       |   16 ----------------
> >  drivers/media/video/videobuf2-core.c      |    4 +---
> >  include/linux/videodev2.h                 |    4 +---
> >  include/media/videobuf-core.h             |    2 --
> 
> A quick grep through the code shows that you've missed the cpia2 driver which 
> sets the input field to 0 in cpia2_dqbuf(). Please try to compile as many 
> drivers as possible with this patch. Using coccinelle 
> (http://coccinelle.lip6.fr/) could help finding other accesses to the input 
> field.

I grepped them but forgot to give -r option to grep... I found no further
uses of the input field by quick looking. I'll compile what I can and resend
the patch.

-- 
Sakari Ailus
e-mail: sakari.ailus@xxxxxx	jabber/XMPP/Gmail: sailus@xxxxxxxxxxxxxx
--
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