OSDN Git Service

extcon: arizona: Correct error handling on regmap_update_bits_check
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 29 May 2019 09:46:05 +0000 (10:46 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 30 May 2019 01:02:17 +0000 (10:02 +0900)
commitfbdc60b2a7871ccb59f35b0fba2dd82251f8bd70
tree3719485d2bbf9de946f444a30b47401ee2279ea6
parentcd6c84d8f0cdc911df435bb075ba22ce3c605b07
extcon: arizona: Correct error handling on regmap_update_bits_check

Ensure the case when regmap_update_bits_check fails and the change
variable is not updated is handled correctly.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-arizona.c