From: Charles Keepax Date: Thu, 19 Nov 2015 15:45:35 +0000 (+0000) Subject: extcon: arizona: Add device binding to enable ADC mode micdet X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2e87b7a8bef7901ab56f121f0d7c085aacee86fc;p=openwrt%2Fstaging%2Fblogic.git extcon: arizona: Add device binding to enable ADC mode micdet Add a simple boolean binding to turn on and off the use of ADC microphone detection mode to determine 3/4 pole jack. Signed-off-by: Charles Keepax Acked-by: Chanwoo Choi Signed-off-by: Chanwoo Choi --- diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index e4890dd4fefd..af3afeeb6673 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -1236,6 +1236,9 @@ static int arizona_extcon_device_get_pdata(struct arizona *arizona) pdata->micd_force_micbias = device_property_read_bool(arizona->dev, "wlf,micd-force-micbias"); + pdata->micd_software_compare = device_property_read_bool(arizona->dev, + "wlf,micd-software-compare"); + return 0; }