ASoC: wcd-mbhc: Remove hardcoding of hphl and gnd swh to NC for analog USBC

Read hphl_swh and gnd_swh from dtsi instead of hardcoding to NC
for every USBC target. Some platforms use NO switch.

Change-Id: I3dca6c7450579e8feb5d80c1340495958683a026
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
Vatsal Bucha
2019-01-30 21:47:39 +05:30
committad av Gerrit - the friendly Code Review server
förälder b4c9798b90
incheckning 15e7831783

Visa fil

@@ -1358,9 +1358,6 @@ static int wcd_mbhc_initialise(struct wcd_mbhc *mbhc)
* by an external source
*/
if (mbhc->mbhc_cfg->enable_usbc_analog) {
mbhc->hphl_swh = 0;
mbhc->gnd_swh = 0;
if (mbhc->mbhc_cb->hph_pull_up_control_v2)
mbhc->mbhc_cb->hph_pull_up_control_v2(component,
HS_PULLUP_I_OFF);