]> git.baikalelectronics.ru Git - kernel.git/commit
Input: wm97xx - make .remove() obviously always return 0
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 8 Jul 2022 20:19:19 +0000 (13:19 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 8 Jul 2022 20:19:53 +0000 (13:19 -0700)
commitbbffdac83afef11f978c4c433ebdf76c898b1bf5
treea895372e1101c4efb5abdcd5a6d71fbab465f604
parent6e93e5918e56685c67e28d7f8987eca8ac386f61
Input: wm97xx - make .remove() obviously always return 0

wm97xx_remove() returns zero unconditionally. To prepare changing the
prototype for platform remove callbacks to return void, make it explicit
that wm97xx_mfd_remove() always returns zero.

The prototype for wm97xx_remove cannot be changed, as it's also used as
a plain device remove callback.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220708062718.240013-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/wm97xx-core.c