[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)
commiteee7d353a19032b48c0f71504081de84a0ee79d8
treea9161248e5606ee9ea2730e40c43c25dc1e2a3cd
parentdb152276ce720baadcbd6bccebbeb17da001d312
[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