msm: camera: cdm: Fix some issues in irq line test

This change fix unused error in cpas during compile when enable
CONFIG_CAM_TEST_IRQ_LINE and CONFIG_CAM_TEST_IRQ_LINE_AT_PROBE
issue, also fix can not find cdm irq line test interface when only
enable CONFIG_CAM_TEST_IRQ_LINE issue.

CRs-Fixed: 3169889
Change-Id: I673b150508d38bcf71ad33a5a9b38c6dff9a9578
Signed-off-by: zhuo <quic_zhuo@quicinc.com>
Цей коміт міститься в:
zhuo
2022-04-08 12:02:03 +08:00
зафіксовано Camera Software Integration
джерело 2827395809
коміт 5246b7ef75
2 змінених файлів з 1 додано та 2 видалено

Переглянути файл

@@ -2209,7 +2209,7 @@ int cam_hw_cdm_deinit(void *hw_priv,
return rc;
}
#if (defined(CONFIG_CAM_TEST_IRQ_LINE) && defined(CONFIG_CAM_TEST_IRQ_LINE_AT_PROBE))
#ifdef CONFIG_CAM_TEST_IRQ_LINE
static int cam_cdm_test_irq_line(void *hw_priv)
{
struct cam_hw_info *cdm_hw = hw_priv;

Переглянути файл

@@ -611,7 +611,6 @@ static int cam_cpastop_reset_irq(struct cam_hw_info *cpas_hw)
#if (defined(CONFIG_CAM_TEST_IRQ_LINE) && defined(CONFIG_CAM_TEST_IRQ_LINE_AT_PROBE))
static int counter;
bool wait_for_irq = false;
struct cam_cpas *cpas_core = (struct cam_cpas *) cpas_hw->core_info;
if (counter == 0) {
CAM_INFO(CAM_CPAS, "Enabling camnoc test irq");