Commit 04ee6d61 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

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: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent fb517583
...@@ -71,7 +71,7 @@ static int vimc_cap_querycap(struct file *file, void *priv, ...@@ -71,7 +71,7 @@ static int vimc_cap_querycap(struct file *file, void *priv,
{ {
struct vimc_cap_device *vcap = video_drvdata(file); 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)); strscpy(cap->card, KBUILD_MODNAME, sizeof(cap->card));
snprintf(cap->bus_info, sizeof(cap->bus_info), snprintf(cap->bus_info, sizeof(cap->bus_info),
"platform:%s", vcap->vdev.v4l2_dev->name); "platform:%s", vcap->vdev.v4l2_dev->name);
......
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#include <media/media-device.h> #include <media/media-device.h>
#include <media/v4l2-device.h> #include <media/v4l2-device.h>
#define VIMC_PDEV_NAME "vimc"
/* VIMC-specific controls */ /* VIMC-specific controls */
#define VIMC_CID_VIMC_BASE (0x00f00000 | 0xf000) #define VIMC_CID_VIMC_BASE (0x00f00000 | 0xf000)
#define VIMC_CID_VIMC_CLASS (0x00f00000 | 1) #define VIMC_CID_VIMC_CLASS (0x00f00000 | 1)
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "vimc-common.h" #include "vimc-common.h"
#define VIMC_PDEV_NAME "vimc"
#define VIMC_MDEV_MODEL_NAME "VIMC MDEV" #define VIMC_MDEV_MODEL_NAME "VIMC MDEV"
#define VIMC_ENT_LINK(src, srcpad, sink, sinkpad, link_flags) { \ #define VIMC_ENT_LINK(src, srcpad, sink, sinkpad, link_flags) { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment