asoc: wcd-mbhc: move component inside the WCD_USBSS

moved compponent inside the #define of WCD_USBSS, to avoid
compilation issue for unsed of WCD_USBSS_I2C in some targets.

Change-Id: Ia2f64182aa8330db10122e70f12066ffebe9d16b
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
This commit is contained in:
Prasad Kumpatla
2023-08-31 13:15:43 +05:30
parent 513787652f
commit 76549b668e

View File

@@ -965,9 +965,9 @@ static bool wcd_mbhc_moisture_detect(struct wcd_mbhc *mbhc, bool detection_type)
static void wcd_mbhc_set_hsj_connect(struct wcd_mbhc *mbhc, bool connect)
{
struct snd_soc_component *component = mbhc->component;
#if IS_ENABLED(CONFIG_QCOM_WCD_USBSS_I2C)
struct snd_soc_component *component = mbhc->component;
if (connect) {
if (mbhc->mbhc_cb && mbhc->mbhc_cb->zdet_leakage_resistance)
mbhc->mbhc_cb->zdet_leakage_resistance(mbhc, false); /* enable 1M pull-up */