atomisp: ia_css_bh_hmem_encode is a no-op so remove it
authorAlan Cox <alan@linux.intel.com>
Mon, 20 Mar 2017 14:39:21 +0000 (14:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 07:04:32 +0000 (08:04 +0100)
This is a do nothing function so we can replace it with nothing and eliminate it entirely.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2400_system/hive_isp_css_2400_system_generated/ia_css_isp_params.c
drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ia_css_isp_params.c
drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_system/hive_isp_css_2401_system_generated/ia_css_isp_params.c
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/bh/bh_2/ia_css_bh.host.c
drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/bh/bh_2/ia_css_bh.host.h

index 9620bc3215111fec7613eb503854bd1bdf1254f4..3246d99e6c0fda5461b8b82d42aadc644f934f9e 100644 (file)
@@ -176,15 +176,9 @@ size);
        {
                unsigned size   = stage->binary->info->mem_offsets.offsets.param->hmem0.bh.size;
 
-               unsigned offset = stage->binary->info->mem_offsets.offsets.param->hmem0.bh.offset;
-
                if (size) {
                        ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bh() enter:\n");
 
-                       ia_css_bh_hmem_encode((struct sh_css_isp_bh_hmem_params *)
-                                       &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_HMEM0].address[offset],
-                                       &params->s3a_config,
-size);
                        params->isp_params_changed = true;
                        params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_HMEM0] = true;
 
index 87a330862bfc8709110015309804e48eb8452d11..4c79a319a771288cca2bef4875341c614d58aea0 100644 (file)
@@ -175,15 +175,9 @@ size);
        {
                unsigned size   = stage->binary->info->mem_offsets.offsets.param->hmem0.bh.size;
 
-               unsigned offset = stage->binary->info->mem_offsets.offsets.param->hmem0.bh.offset;
-
                if (size) {
                        ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bh() enter:\n");
 
-                       ia_css_bh_hmem_encode((struct sh_css_isp_bh_hmem_params *)
-                                       &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_HMEM0].address[offset],
-                                       &params->s3a_config,
-size);
                        params->isp_params_changed = true;
                        params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_HMEM0] = true;
 
index 87a330862bfc8709110015309804e48eb8452d11..4c79a319a771288cca2bef4875341c614d58aea0 100644 (file)
@@ -175,15 +175,9 @@ size);
        {
                unsigned size   = stage->binary->info->mem_offsets.offsets.param->hmem0.bh.size;
 
-               unsigned offset = stage->binary->info->mem_offsets.offsets.param->hmem0.bh.offset;
-
                if (size) {
                        ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bh() enter:\n");
 
-                       ia_css_bh_hmem_encode((struct sh_css_isp_bh_hmem_params *)
-                                       &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_HMEM0].address[offset],
-                                       &params->s3a_config,
-size);
                        params->isp_params_changed = true;
                        params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_HMEM0] = true;
 
index 0dcafad313b2a9c5b04071c542842cc5a5968a89..99c80d2d8f11c5e0eedd47c957d51e1fead275e0 100644 (file)
@@ -63,15 +63,4 @@ ia_css_bh_encode(
            uDIGIT_FITTING(from->ae_y_coef_b, 16, SH_CSS_AE_YCOEF_SHIFT);
 }
 
-void
-ia_css_bh_hmem_encode(
-       struct sh_css_isp_bh_hmem_params *to,
-       const struct ia_css_3a_config *from,
-       unsigned size)
-{
-       (void)size;
-       (void)from;
-       (void)to;
-}
-
 #endif
index 339e954a90690afcc8a0cf972a7f0adc1aafbedb..cbb09299cf21e8c7cab3ab89d168935a4d726399 100644 (file)
@@ -29,10 +29,4 @@ ia_css_bh_encode(
        const struct ia_css_3a_config *from,
        unsigned size);
 
-void
-ia_css_bh_hmem_encode(
-       struct sh_css_isp_bh_hmem_params *to,
-       const struct ia_css_3a_config *from,
-       unsigned size);
-
 #endif /* __IA_CSS_BH_HOST_H */