diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2019-01-30 14:43:51 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-02-07 18:38:59 +0100 |
commit | 6fd369dd1cb65a032f1ab9227033ecb7b759656d (patch) | |
tree | ccb84e8e1dd5a20689312afa2b8a4f39d5470b16 /drivers/media/platform/vimc/vimc-capture.c | |
parent | media: pxa_camera: fix smatch warning (diff) | |
download | linux-6fd369dd1cb65a032f1ab9227033ecb7b759656d.tar.xz linux-6fd369dd1cb65a032f1ab9227033ecb7b759656d.zip |
media: vimc: fill in bus_info in media_device_info
It is good practice to fill in bus_info.
Also just use 'platform:vimc' when filling in the bus_info in querycap:
the bus_info has nothing to do with the video device name.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Helen Koike <helen.koike@collabora.com>
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 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/platform/vimc/vimc-capture.c b/drivers/media/platform/vimc/vimc-capture.c index 93837d9eecd2..a6f8715d2b44 100644 --- a/drivers/media/platform/vimc/vimc-capture.c +++ b/drivers/media/platform/vimc/vimc-capture.c @@ -70,12 +70,10 @@ struct vimc_cap_buffer { static int vimc_cap_querycap(struct file *file, void *priv, struct v4l2_capability *cap) { - struct vimc_cap_device *vcap = video_drvdata(file); - 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); + "platform:%s", VIMC_PDEV_NAME); return 0; } |