]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commite470d60bb14746405af2f0eda07cd443829b548e
tree586ecf57eabac3cbce767148c47dd1a5fed53035
parent604ebd6caa7707ad036cb30331244e5323c5eabb
[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