]> git.baikalelectronics.ru Git - kernel.git/commit
media: ti-vpe: cal: Use correct device name for bus_info
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 6 Jul 2020 18:36:00 +0000 (20:36 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 07:24:17 +0000 (09:24 +0200)
commitb7e70c31b6fa67a83f031601d6388f515ea260a0
treeabd498f2125880a19b92761d6f19386e4d3d9d67
parent7bc105bf8262863e5dc60d3d9a11db101191acc1
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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/ti-vpe/cal.c