From patchwork Mon Mar 20 14:39:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Cox X-Patchwork-Id: 9634353 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C0FEF6020B for ; Mon, 20 Mar 2017 14:44:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B25E9205AD for ; Mon, 20 Mar 2017 14:44:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A712327D8D; Mon, 20 Mar 2017 14:44:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C52B205AD for ; Mon, 20 Mar 2017 14:44:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753170AbdCTOlN (ORCPT ); Mon, 20 Mar 2017 10:41:13 -0400 Received: from mga03.intel.com ([134.134.136.65]:65513 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753019AbdCTOjo (ORCPT ); Mon, 20 Mar 2017 10:39:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490020783; x=1521556783; h=subject:from:to:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=x8I0gtL/XOdBwDvAGvsMb9tPfhAFNjZOA+PJmHBEqbc=; b=ry7uccxggegujM5qUzk0hC/kW7Nh5VlEO/8DyoWSheBs3DUr5TAiEX3g ikCIXg3JOHLShtoI43nZ7c7ywZuprA==; Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Mar 2017 07:39:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,194,1486454400"; d="scan'208";a="238288449" Received: from acox1-desk1.ger.corp.intel.com ([10.252.22.109]) by fmsmga004.fm.intel.com with ESMTP; 20 Mar 2017 07:39:22 -0700 Subject: [PATCH 05/24] atomisp: ia_css_bh_hmem_encode is a no-op so remove it From: Alan Cox To: greg@kroah.com, linux-media@vger.kernel.org Date: Mon, 20 Mar 2017 14:39:21 +0000 Message-ID: <149002074699.17109.16054163338277573885.stgit@acox1-desk1.ger.corp.intel.com> In-Reply-To: <149002068431.17109.1216139691005241038.stgit@acox1-desk1.ger.corp.intel.com> References: <149002068431.17109.1216139691005241038.stgit@acox1-desk1.ger.corp.intel.com> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is a do nothing function so we can replace it with nothing and eliminate it entirely. Signed-off-by: Alan Cox --- .../ia_css_isp_params.c | 6 ------ .../ia_css_isp_params.c | 6 ------ .../ia_css_isp_params.c | 6 ------ .../css2400/isp/kernels/bh/bh_2/ia_css_bh.host.c | 11 ----------- .../css2400/isp/kernels/bh/bh_2/ia_css_bh.host.h | 6 ------ 5 files changed, 35 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2400_system/hive_isp_css_2400_system_generated/ia_css_isp_params.c b/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2400_system/hive_isp_css_2400_system_generated/ia_css_isp_params.c index 9620bc3..3246d99 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2400_system/hive_isp_css_2400_system_generated/ia_css_isp_params.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2400_system/hive_isp_css_2400_system_generated/ia_css_isp_params.c @@ -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], - ¶ms->s3a_config, -size); params->isp_params_changed = true; params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_HMEM0] = true; diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ia_css_isp_params.c b/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ia_css_isp_params.c index 87a3308..4c79a31 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ia_css_isp_params.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ia_css_isp_params.c @@ -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], - ¶ms->s3a_config, -size); params->isp_params_changed = true; params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_HMEM0] = true; diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_system/hive_isp_css_2401_system_generated/ia_css_isp_params.c b/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_system/hive_isp_css_2401_system_generated/ia_css_isp_params.c index 87a3308..4c79a31 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_system/hive_isp_css_2401_system_generated/ia_css_isp_params.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_system/hive_isp_css_2401_system_generated/ia_css_isp_params.c @@ -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], - ¶ms->s3a_config, -size); params->isp_params_changed = true; params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_HMEM0] = true; diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/bh/bh_2/ia_css_bh.host.c b/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/bh/bh_2/ia_css_bh.host.c index 0dcafad..99c80d2 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/bh/bh_2/ia_css_bh.host.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/bh/bh_2/ia_css_bh.host.c @@ -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 diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/bh/bh_2/ia_css_bh.host.h b/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/bh/bh_2/ia_css_bh.host.h index 339e954..cbb0929 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/bh/bh_2/ia_css_bh.host.h +++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/bh/bh_2/ia_css_bh.host.h @@ -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 */