]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l2-mc: add a routine to create USB media_device
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 11 Feb 2016 17:21:46 +0000 (15:21 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 16 Feb 2016 10:38:59 +0000 (08:38 -0200)
commitc94aa40a01f67fdecd9524f435ab9a488f4d4c4b
treea9161248e5606ee9ea2730e40c43c25dc1e2a3cd
parent34a155e19493126a067fe10ab767e4887ee93374
[media] v4l2-mc: add a routine to create USB media_device

Instead of copying exactly the same code on all USB devices,
add an ancillary routine that will create and fill the
struct media_device with the values imported from the USB
device.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-mc.c
include/media/v4l2-mc.h