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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user