mfd: twl6030: Make twl6030_exit_irq() return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 13 Jan 2022 10:14:29 +0000 (11:14 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 28 Apr 2022 16:24:10 +0000 (17:24 +0100)
commitb6f29431820d16de4b16c465c44355d4aa522149
tree42461467905ae3ec981cb9c92db1dc0eda7c001e
parent380422ad344d461901dca85970ecc976e182f0c9
mfd: twl6030: Make twl6030_exit_irq() return void

This function returns 0 unconditionally, so there is no benefit in
returning a value at all and make the caller do error checking.

Also the caller (twl_remove()) cannot do anything sensible with an error
code. Passing it up the call stack isn't a good option because the i2c core
ignores error codes (apart from emitting an error message).

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220113101430.12869-2-u.kleine-koenig@pengutronix.de
drivers/mfd/twl-core.c
drivers/mfd/twl-core.h
drivers/mfd/twl6030-irq.c