]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit216fcb41301ea8a28b25d4854fb442488fb3adf6
treeb40e2ae528e4c5427d62c0ce45697dce3e2a5365
parent0187a6ce8cb05bd7b0b8a7824e87416dac83314b
[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