extcon: madera: Correct handling of minimum short circuit impedance
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Fri, 4 Aug 2017 12:31:17 +0000 (13:31 +0100)
committer강신형 <s47.kang@samsung.com>
Tue, 19 Jun 2018 07:52:36 +0000 (16:52 +0900)
commite5694758cf8908fde0e42d626894b52de674d76d
tree5942474574cb270acfb83a1c589382b7f1ea3adf
parent24525eb3cbb2fafed58141a5ea869fb5c8aa2eb6
extcon: madera: Correct handling of minimum short circuit impedance

If there is an external resistance <= 4 ohms and the configured short
impedance had to be adjusted up to be in measurable range it was being
set too high because the adjusted threshold didn't take account that
it should be reduced by the external resistance.

Change-Id: I9b76d643b6533c3fa4f220f56c949303eaeff833
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
drivers/extcon/extcon-madera.c