summaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/bmc150-accel-spi.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-10-13 22:32:10 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-10-19 09:30:45 +0200
commit9713964f08d70d4373ea0a27e23119f6b938ca4e (patch)
tree913fc9e8ebd4d1c3ae2f9497b3d522d8cd584153 /drivers/iio/accel/bmc150-accel-spi.c
parentiio: accel: bma400: Make bma400_remove() return void (diff)
downloadlinux-9713964f08d70d4373ea0a27e23119f6b938ca4e.tar.xz
linux-9713964f08d70d4373ea0a27e23119f6b938ca4e.zip
iio: accel: bmc150: Make bmc150_accel_core_remove() return void
Up to now bmc150_accel_core_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-3-u.kleine-koenig@pengutronix.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/bmc150-accel-spi.c')
-rw-r--r--drivers/iio/accel/bmc150-accel-spi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/iio/accel/bmc150-accel-spi.c b/drivers/iio/accel/bmc150-accel-spi.c
index 191e312dc91a..11559567cb39 100644
--- a/drivers/iio/accel/bmc150-accel-spi.c
+++ b/drivers/iio/accel/bmc150-accel-spi.c
@@ -37,7 +37,9 @@ static int bmc150_accel_probe(struct spi_device *spi)
static int bmc150_accel_remove(struct spi_device *spi)
{
- return bmc150_accel_core_remove(&spi->dev);
+ bmc150_accel_core_remove(&spi->dev);
+
+ return 0;
}
static const struct acpi_device_id bmc150_accel_acpi_match[] = {