]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: drivers/media: don't set pix->priv = 0
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 26 Jun 2019 09:58:02 +0000 (05:58 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 23 Jul 2019 12:48:33 +0000 (08:48 -0400)
commitb61789f53d49db8ca1f6b8fed411b317b4e8f044
tree8491fcb0a20b6365c46e5ba46873a231c095051f
parent7708065f5d51a9ae80df29d1257d91fc6a6e50a0
media: drivers/media: don't set pix->priv = 0

The priv field of struct v4l2_pix_format shouldn't be set by drivers,
it's set by the v4l2 core instead to V4L2_PIX_FMT_PRIV_MAGIC.

Drop this from the few media drivers that still do this.

Note that the gspca patch is slightly more involved since some of the
sub-gspca drivers use the priv field internally.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[hverkuil-cisco@xs4all.nl: fix clash in gspca between priv arg and priv variable]
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/cobalt/cobalt-v4l2.c
drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c
drivers/media/pci/solo6x10/solo6x10-v4l2.c
drivers/media/pci/tw68/tw68-video.c
drivers/media/platform/davinci/vpif_capture.c
drivers/media/usb/au0828/au0828-video.c
drivers/media/usb/cpia2/cpia2_v4l.c
drivers/media/usb/em28xx/em28xx-video.c
drivers/media/usb/gspca/gspca.c
drivers/media/usb/s2255/s2255drv.c
drivers/media/usb/uvc/uvc_v4l2.c