mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 22:23:55 +00:00
media: atomisp: move ia_css_configure_sc() implementation
With the changes, this function is now undefined if built for ISP2400. So, move its implementation to the file which calls it. Reported-by: Francescodario Cuzzocrea <francescodario.cuzzocrea@mail.polimi.it> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
8ac1714015
commit
32efca3d55
@ -272,33 +272,6 @@ ia_css_configure_output(
|
||||
"ia_css_configure_output() leave:\n");
|
||||
}
|
||||
|
||||
/* Code generated by genparam/genconfig.c:gen_configure_function() */
|
||||
|
||||
void
|
||||
ia_css_configure_sc(
|
||||
const struct ia_css_binary *binary,
|
||||
const struct ia_css_sc_configuration *config_dmem)
|
||||
{
|
||||
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE,
|
||||
"ia_css_configure_sc() enter:\n");
|
||||
|
||||
{
|
||||
unsigned int offset = 0;
|
||||
unsigned int size = 0;
|
||||
|
||||
if (binary->info->mem_offsets.offsets.config) {
|
||||
size = binary->info->mem_offsets.offsets.config->dmem.sc.size;
|
||||
offset = binary->info->mem_offsets.offsets.config->dmem.sc.offset;
|
||||
}
|
||||
if (size) {
|
||||
ia_css_sc_config((struct sh_css_isp_sc_isp_config *)
|
||||
&binary->mem_params.params[IA_CSS_PARAM_CLASS_CONFIG][IA_CSS_ISP_DMEM].address[offset],
|
||||
config_dmem, size);
|
||||
}
|
||||
}
|
||||
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE,
|
||||
"ia_css_configure_sc() leave:\n");
|
||||
}
|
||||
|
||||
/* Code generated by genparam/genconfig.c:gen_configure_function() */
|
||||
|
||||
|
@ -152,14 +152,6 @@ ia_css_configure_output(
|
||||
|
||||
/* Code generated by genparam/genconfig.c:gen_configure_function() */
|
||||
|
||||
/* ISP2401 */
|
||||
void
|
||||
ia_css_configure_sc(
|
||||
const struct ia_css_binary *binary,
|
||||
const struct ia_css_sc_configuration *config_dmem);
|
||||
|
||||
/* Code generated by genparam/genconfig.c:gen_configure_function() */
|
||||
|
||||
void
|
||||
ia_css_configure_raw(
|
||||
const struct ia_css_binary *binary,
|
||||
|
@ -22,6 +22,35 @@
|
||||
|
||||
#include "ia_css_sc.host.h"
|
||||
|
||||
/* Code generated by genparam/genconfig.c:gen_configure_function() */
|
||||
|
||||
/* ISP2401 */
|
||||
static void
|
||||
ia_css_configure_sc(
|
||||
const struct ia_css_binary *binary,
|
||||
const struct ia_css_sc_configuration *config_dmem)
|
||||
{
|
||||
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE,
|
||||
"ia_css_configure_sc() enter:\n");
|
||||
|
||||
{
|
||||
unsigned int offset = 0;
|
||||
unsigned int size = 0;
|
||||
|
||||
if (binary->info->mem_offsets.offsets.config) {
|
||||
size = binary->info->mem_offsets.offsets.config->dmem.sc.size;
|
||||
offset = binary->info->mem_offsets.offsets.config->dmem.sc.offset;
|
||||
}
|
||||
if (size) {
|
||||
ia_css_sc_config((struct sh_css_isp_sc_isp_config *)
|
||||
&binary->mem_params.params[IA_CSS_PARAM_CLASS_CONFIG][IA_CSS_ISP_DMEM].address[offset],
|
||||
config_dmem, size);
|
||||
}
|
||||
}
|
||||
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE,
|
||||
"ia_css_configure_sc() leave:\n");
|
||||
}
|
||||
|
||||
void
|
||||
ia_css_sc_encode(
|
||||
struct sh_css_isp_sc_params *to,
|
||||
|
Loading…
Reference in New Issue
Block a user