extcon: arizona: Attempt more microphone measurements
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 25 Jan 2013 12:14:44 +0000 (20:14 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 1 Apr 2013 21:06:39 +0000 (22:06 +0100)
commit84eaa13616b6e7d001b7f7b909228087779b677b
treecdf7359a290cda17faa26078b22bdd37c5a733f6
parent253b5374f08f3908cc380c5665470a5b7609be1c
extcon: arizona: Attempt more microphone measurements

In some pathological use cases users may insert an accessory very slowly
causing multiple indeterminate measurements. Handle this by retrying many
measurements before we give up and declare a headphone.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/extcon/extcon-arizona.c