iio: accel: kxsd9: Make kxsd9_common_remove() return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 13 Oct 2021 20:32:12 +0000 (22:32 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 19 Oct 2021 07:30:45 +0000 (08:30 +0100)
commitdf2171c668bdecc9122cc8f66bd0639baeae5c6b
tree00e015af91514481ed7cd9eeb8980c7b43dc088f
parentbcf9d61a2dcb05d1de46ead784c333043ef2e7f2
iio: accel: kxsd9: Make kxsd9_common_remove() return void

Up to now kxsd9_common_remove() returns zero unconditionally. Make it
return void instead which makes it easier to see in the callers that
there is no error to handle.

Also the return value of i2c and spi remove callbacks is ignored anyway.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20211013203223.2694577-5-u.kleine-koenig@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/kxsd9-i2c.c
drivers/iio/accel/kxsd9-spi.c
drivers/iio/accel/kxsd9.c
drivers/iio/accel/kxsd9.h