media: ti-vpe: cal: Split CAMERARX handling to cal-camerarx.c
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 6 Jul 2020 18:36:45 +0000 (20:36 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 08:40:43 +0000 (10:40 +0200)
commitaf30d4f36ef35d23f1ab6c5e4f329c743fb3c360
tree163ca68e2271ceec75e120c51d88356b259b960f
parentd373018f3abda9d2446a059133cd6425f56b3b51
media: ti-vpe: cal: Split CAMERARX handling to cal-camerarx.c

Implementation of media controller centric device configuration will add
code to the CAMERARX support section, which is already quite big. Move
it to a separate file to make the code more manageable. No functional
change is included.

The cal_camerarx_init_regmap() function is kept in cal.c and renamed to
cal_init_camerarx_regmap() as it's not specific to one CAMERARX
instance, but related to the whole CAL device.

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/Makefile
drivers/media/platform/ti-vpe/cal-camerarx.c [new file with mode: 0644]
drivers/media/platform/ti-vpe/cal.c
drivers/media/platform/ti-vpe/cal.h