extcon: madera: Fix skipping of ranges < external resistor
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Sat, 3 Mar 2018 17:30:34 +0000 (17:30 +0000)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:29 +0000 (20:22 +0300)
commitbbbc954213ff3bfa8b16d6707dcd66c7911f1396
tree067c7d8848973c3f765cb62b8cf5137b5da8df62
parent9dc3224ea879e102070ce9c586426e2b88f22894
extcon: madera: Fix skipping of ranges < external resistor

The loop for skipping external ranges should start at the first
valid range. It was starting at 0 which on cs47l15 had the effect
of changing hpdet_init_range to 0.

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