OSDN Git Service

pinctrl: microchip-sgpio: return error in spgio_output_set()
authorMichael Walle <michael@walle.cc>
Sat, 26 Feb 2022 20:45:06 +0000 (21:45 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Mar 2022 00:55:58 +0000 (01:55 +0100)
commit2560c681999c9d33eb32b208de6a607622867c95
treecb30933467d541df83f874e27ce46ed2be2643d0
parent0e68328edb3227cd00681671843c3d4113083456
pinctrl: microchip-sgpio: return error in spgio_output_set()

Make sgpio_output_set() return an error value. Don't just ignore the
return value of any regmap access but propagate it to our callers. Even
if the accesses never fail, this is a preparation patch to add single
shot mode where we need to poll a bit and thus we might get -ETIMEDOUT.

Signed-off-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220226204507.2511633-5-michael@walle.cc
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-microchip-sgpio.c