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)
committer강신형 <s47.kang@samsung.com>
Tue, 19 Jun 2018 07:52:19 +0000 (16:52 +0900)
commit01d1d7b2ec57aa3327c6a3acd340c40a9936a205
treea0a5a00d82aa5b352cda1f3878cdad439e3aa3e0
parent9f9e78fc1fc4a838bfb90274e158c290bb9b881c
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