extcon: arizona: Update manual headphone detection calculation
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Fri, 30 May 2014 12:19:17 +0000 (13:19 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 16 Jun 2014 04:33:19 +0000 (13:33 +0900)
commit24a279b1cae0af0eb4bf0dd8b3ef85956a96ff7a
tree6dcf3da94e99ecd5029c0773602e25ef88f8a6e2
parente368f525218497a9943b61301148d30382c1e014
extcon: arizona: Update manual headphone detection calculation

The higher levels of impedance have a higher minimum value than the
first level. As the same value was used for all levels, higher impedances
were reported with a very low level of accuracy. This patch applies the
approriate lower threshold for each level, whilst we are changing things
add a define for the maximum value at each level to improve readability.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-arizona.c
This page took 0.024464 seconds and 5 git commands to generate.