media: atomisp: cleanup ia_css_isp_configs() code
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 5 Nov 2021 12:08:37 +0000 (12:08 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:50 +0000 (08:11 +0000)
commit08ae0ffdd6c4ff121d3f9f677ef61f58cf4a6313
tree5d86561342790980b73cb396023ed397adfed7d8
parent2aa384962a7f83924c5c049f89ab4eb4d22224d3
media: atomisp: cleanup ia_css_isp_configs() code

The auto-generated code inside ia_css_isp_configs() is more
complex than it should be. Also, it doesn't return any errors.

However, the functions called by it can mis-configure the pipelines,
but, as there's no way to return errors, it internally calls the
assert() macro.

So, add a return parameter to each routine there, in order to
prepare the code to be more robust.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/ia_css_isp_configs.c
drivers/staging/media/atomisp/pci/ia_css_isp_configs.h