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)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:28 +0000 (20:22 +0300)
commit332346efb2695fce505878e1d57388e56a4c7f53
treed36be00d92b1f8c3f0b705b2b74dac908deb8614
parent8777f51185dec95e74913b9c7240af0b8fa5721e
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