From: Laurent Pinchart Date: Mon, 6 Jul 2020 18:36:00 +0000 (+0200) Subject: media: ti-vpe: cal: Use correct device name for bus_info X-Git-Tag: v5.15~3158^2~136 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17513da19e0a170d0a63c6c80e5d88cbf3eb1788;p=platform%2Fkernel%2Flinux-starfive.git media: ti-vpe: cal: Use correct device name for bus_info The v4l2_capability bus_info field, filled by the VIDIOC_QUERYCAP ioctl handler, specifies the location of the device in the system. For platform devices, V4L2 specifies that the value must be "platform:" followed by the device name. Fix the cal_querycap() function to set the right value. Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen Reviewed-by: Benoit Parrot Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/ti-vpe/cal.c b/drivers/media/platform/ti-vpe/cal.c index ac23c41..0284794 100644 --- a/drivers/media/platform/ti-vpe/cal.c +++ b/drivers/media/platform/ti-vpe/cal.c @@ -1290,7 +1290,7 @@ static int cal_querycap(struct file *file, void *priv, strscpy(cap->card, CAL_MODULE_NAME, sizeof(cap->card)); snprintf(cap->bus_info, sizeof(cap->bus_info), - "platform:%s", ctx->v4l2_dev.name); + "platform:%s", dev_name(&ctx->cal->pdev->dev)); return 0; }