]> 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)
commit97d34941294e9afa4e6307d4b59943da070719ed
tree586ecf57eabac3cbce767148c47dd1a5fed53035
parent2fcbe13a5edf7aadd3c01d68f90a48a55696c243
[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