]> git.baikalelectronics.ru Git - kernel.git/commit
media: ti-vpe: cal: Move format handling to cal.c and expose helpers
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 6 Dec 2020 23:53:32 +0000 (00:53 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 4 Jan 2021 10:31:03 +0000 (11:31 +0100)
commit0130a77e1476fb415fea6f29669189da6b0c7bcf
treec0ad0997a84168ae8664e5c4f247c24166783bec
parentf31734a0d49d628f9da9a7389b124d89b154770a
media: ti-vpe: cal: Move format handling to cal.c and expose helpers

The cal_formats array contain the description of all formats supported
by the hardware. It's currently used by the V4L2 video device operations
only, but will be needed by the CAMERARX subdev code too. Move it from
cal-video.c to cal.c and add helper functions to access it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.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-video.c
drivers/media/platform/ti-vpe/cal.c
drivers/media/platform/ti-vpe/cal.h