diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2022-01-22 13:23:18 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-04-24 08:07:08 +0100 |
commit | f2d8b6917f3bcfb3190eb80567fea71a9b59dbd3 (patch) | |
tree | e3909757b20eed89588b2be2ba593d0db4901a16 /drivers/media/platform/samsung/exynos4-is/fimc-lite.c | |
parent | cef699749f3789add5ecaf0a2f73a659cae1c7ae (diff) | |
download | lwn-f2d8b6917f3bcfb3190eb80567fea71a9b59dbd3.tar.gz lwn-f2d8b6917f3bcfb3190eb80567fea71a9b59dbd3.zip |
media: v4l: ioctl: Set bus_info in v4l_querycap()
The bus_info field is set by most drivers based on the type of the device
bus as well as the name of the device. Do this in v4l_querycap() so
drivers don't need to. This keeps compatibility with non-default and silly
bus_info.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/platform/samsung/exynos4-is/fimc-lite.c')
-rw-r--r-- | drivers/media/platform/samsung/exynos4-is/fimc-lite.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/platform/samsung/exynos4-is/fimc-lite.c b/drivers/media/platform/samsung/exynos4-is/fimc-lite.c index 2e8f476efc5c..1a396b7cd9a9 100644 --- a/drivers/media/platform/samsung/exynos4-is/fimc-lite.c +++ b/drivers/media/platform/samsung/exynos4-is/fimc-lite.c @@ -646,12 +646,8 @@ static void fimc_lite_try_compose(struct fimc_lite *fimc, struct v4l2_rect *r) static int fimc_lite_querycap(struct file *file, void *priv, struct v4l2_capability *cap) { - struct fimc_lite *fimc = video_drvdata(file); - strscpy(cap->driver, FIMC_LITE_DRV_NAME, sizeof(cap->driver)); strscpy(cap->card, FIMC_LITE_DRV_NAME, sizeof(cap->card)); - snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", - dev_name(&fimc->pdev->dev)); return 0; } |