mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 08:34:20 +08:00
media: vimc: fill in correct driver name in querycap
The driver name as returned in v4l2_capabilities must be vimc, not vimc_capture. Fix this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
fb517583b3
commit
04ee6d614c
@ -71,7 +71,7 @@ static int vimc_cap_querycap(struct file *file, void *priv,
|
||||
{
|
||||
struct vimc_cap_device *vcap = video_drvdata(file);
|
||||
|
||||
strscpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver));
|
||||
strscpy(cap->driver, VIMC_PDEV_NAME, sizeof(cap->driver));
|
||||
strscpy(cap->card, KBUILD_MODNAME, sizeof(cap->card));
|
||||
snprintf(cap->bus_info, sizeof(cap->bus_info),
|
||||
"platform:%s", vcap->vdev.v4l2_dev->name);
|
||||
|
@ -22,6 +22,8 @@
|
||||
#include <media/media-device.h>
|
||||
#include <media/v4l2-device.h>
|
||||
|
||||
#define VIMC_PDEV_NAME "vimc"
|
||||
|
||||
/* VIMC-specific controls */
|
||||
#define VIMC_CID_VIMC_BASE (0x00f00000 | 0xf000)
|
||||
#define VIMC_CID_VIMC_CLASS (0x00f00000 | 1)
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
#include "vimc-common.h"
|
||||
|
||||
#define VIMC_PDEV_NAME "vimc"
|
||||
#define VIMC_MDEV_MODEL_NAME "VIMC MDEV"
|
||||
|
||||
#define VIMC_ENT_LINK(src, srcpad, sink, sinkpad, link_flags) { \
|
||||
|
Loading…
Reference in New Issue
Block a user