extcon: arizona: Simplify HPDET based identification
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 25 Feb 2013 23:42:31 +0000 (23:42 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 2 Apr 2013 10:54:02 +0000 (11:54 +0100)
commit9c2ba270eaa227c999af451e1c2c9bf0d24aa8e5
tree458b02da9a45743fce367c582f35bbf92c7fee24
parentdb924ff5c7297cca85eb0faa79ea29e988f96420
extcon: arizona: Simplify HPDET based identification

Rather than measuring both HP channels we can simply directly measure the
microphone impedance and then rely on MICDET for final confirmation of the
presence of a suitable microphone. This improves the overall performance
of the identification process.

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