]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l: ioctl: Allow drivers to fill in the format description
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 26 Nov 2018 11:07:29 +0000 (06:07 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 3 Dec 2018 19:41:15 +0000 (14:41 -0500)
commit135444d5485986bffb059081b374c821238285fb
treed4e86f02095ccb7d28af42b6f4152d144d04f356
parentb9cbd309358356901aefd322297eb00ace40616b
media: v4l: ioctl: Allow drivers to fill in the format description

The v4l_fill_fmtdesc() function does a good job in filling in pixelformat
description. While generally all drivers should depend on this function
doing the job, staging drivers that use their own formats may not.

Allow staging drivers to fill in their own formats by checking whether the
description begins with a non-nil character before issuing the warning.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Suggested-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-ioctl.c