[media] allow overriding the driver name
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 11 Feb 2016 16:24:23 +0000 (14:24 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 16 Feb 2016 10:41:10 +0000 (08:41 -0200)
commitbb07bd6b6851120ac9b25bb315d62d9782d2c345
treeb40e2ae528e4c5427d62c0ce45697dce3e2a5365
parentc73bbaa4ec3eb225ffe468f80d45724d0496bf03
[media] allow overriding the driver name

On USB drivers, the dev struct is usually filled with the USB
device. That would mean that the name of the driver specified
by media_device.dev.driver.name would be "usb", instead of the
name of the actual driver that created the media entity.

Add an optional field at the internal struct to allow drivers
to override the driver name.

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