extcon: madera: Ensure micd read failures are caught
authorStuart Henderson <stuarth@opensource.cirrus.com>
Wed, 1 Nov 2017 15:07:46 +0000 (15:07 +0000)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:28 +0000 (20:22 +0300)
commit9cf5fa64c2753d570a38f0115d4fd6adaf8713e4
treeb88e31e7e18b9c4751593ce544bba90274cdbdcb
parent14fb2b15f082650dd2edeb09e475100830e4a57a
extcon: madera: Ensure micd read failures are caught

The use of madera_ohm_to_hohm was causing an error code to be lost when
passed to the .reading function.

Change-Id: Ie1741b47fb7491ba33d1dd5f9580dc975c130d9b
Signed-off-by: Stuart Henderson <stuarth@opensource.cirrus.com>
drivers/extcon/extcon-madera.c