diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2019-01-14 07:27:45 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-01-21 12:45:01 -0500 |
commit | 04ee6d614c0dbe4350c61e8909c2ca01e364884d (patch) | |
tree | fc0026080f1856637f15ad84e1c700ea46f5d8b9 /drivers/media/platform/vimc/vimc-capture.c | |
parent | fb517583b3fe0bb6e64b8a861bfae5dc39f1cedb (diff) |
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>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-capture.c')
-rw-r--r-- | drivers/media/platform/vimc/vimc-capture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vimc/vimc-capture.c b/drivers/media/platform/vimc/vimc-capture.c index 3f7e9ed56633..aaeddf24b042 100644 --- a/drivers/media/platform/vimc/vimc-capture.c +++ b/drivers/media/platform/vimc/vimc-capture.c | |||
@@ -71,7 +71,7 @@ static int vimc_cap_querycap(struct file *file, void *priv, | |||
71 | { | 71 | { |
72 | struct vimc_cap_device *vcap = video_drvdata(file); | 72 | struct vimc_cap_device *vcap = video_drvdata(file); |
73 | 73 | ||
74 | strscpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); | 74 | strscpy(cap->driver, VIMC_PDEV_NAME, sizeof(cap->driver)); |
75 | strscpy(cap->card, KBUILD_MODNAME, sizeof(cap->card)); | 75 | strscpy(cap->card, KBUILD_MODNAME, sizeof(cap->card)); |
76 | snprintf(cap->bus_info, sizeof(cap->bus_info), | 76 | snprintf(cap->bus_info, sizeof(cap->bus_info), |
77 | "platform:%s", vcap->vdev.v4l2_dev->name); | 77 | "platform:%s", vcap->vdev.v4l2_dev->name); |