[media] v4l2-ioctl: fill in the description for VIDIOC_ENUM_FMT
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 20 Mar 2015 12:05:22 +0000 (09:05 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 1 May 2015 09:52:39 +0000 (06:52 -0300)
commitba3002045f8022f3a7e88511c4ebd9876a467ac8
tree586ecf57eabac3cbce767148c47dd1a5fed53035
parent82f72c53813da40303214f4c4d65122b2c1ccc41
[media] v4l2-ioctl: fill in the description for VIDIOC_ENUM_FMT

The descriptions used in drivers for the formats returned with ENUM_FMT
are all over the place.

So instead allow the core to fill them in if the driver didn't. This
allows drivers to drop the description and flags.

Based on an earlier patch from Philipp Zabel:
http://comments.gmane.org/gmane.linux.drivers.video-input-infrastructure/81411

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-ioctl.c
This page took 0.036341 seconds and 5 git commands to generate.