]> git.karo-electronics.de Git - linux-beck.git/commit
[media] v4l2: allow v4l2_subdev_edid to be used with video nodes
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 4 Mar 2014 10:46:47 +0000 (07:46 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 13:05:53 +0000 (10:05 -0300)
commit254a47770163f9322333660ebdabf99ba49873da
treeb7bf53f4662fe1d3e827d811b4fa42f329849597
parentbc826d6e39fe5f09cbadf8723e9183e6331b586f
[media] v4l2: allow v4l2_subdev_edid to be used with video nodes

Struct v4l2_subdev_edid and the VIDIOC_SUBDEV_G/S_EDID ioctls were
specific for subdevices, but for hardware with a simple video pipeline
you do not need/want to create subdevice nodes to just get/set the EDID.

Move the v4l2_subdev_edid struct to v4l2-common.h and rename as
v4l2_edid. Add the same ioctls to videodev2.h as well, thus allowing
this API to be used with both video nodes and v4l-subdev nodes.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
include/uapi/linux/v4l2-common.h
include/uapi/linux/v4l2-subdev.h
include/uapi/linux/videodev2.h