summaryrefslogtreecommitdiff
path: root/drivers/iio/magnetometer/bmc150_magn_i2c.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-05-14 16:32:50 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-06-11 16:35:27 +0300
commitd04d46dd82ad10bdc3c9ce6a513e1fa1336719c4 (patch)
treede3976d38efaaf571c7946ead135aae20ff1bacb /drivers/iio/magnetometer/bmc150_magn_i2c.c
parent70db0e93f7e71d0f9c83f48b048b8b15b1ce80ca (diff)
downloadlinux-d04d46dd82ad10bdc3c9ce6a513e1fa1336719c4.tar.xz
iio:magnetometer:mbc150: Make bmc150_magn_remove() return void
bmc150_magn_remove() always returns zero. Make it return no value which makes it easier to see in the callers that there is no error to handle. Also the return value of i2c driver remove callbacks is ignored anyway. This prepares making i2c remove callbacks return void, too. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20220514133250.307955-1-u.kleine-koenig@pengutronix.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/magnetometer/bmc150_magn_i2c.c')
-rw-r--r--drivers/iio/magnetometer/bmc150_magn_i2c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/iio/magnetometer/bmc150_magn_i2c.c b/drivers/iio/magnetometer/bmc150_magn_i2c.c
index e39b89661ad1..65c004411d0f 100644
--- a/drivers/iio/magnetometer/bmc150_magn_i2c.c
+++ b/drivers/iio/magnetometer/bmc150_magn_i2c.c
@@ -36,7 +36,9 @@ static int bmc150_magn_i2c_probe(struct i2c_client *client,
static int bmc150_magn_i2c_remove(struct i2c_client *client)
{
- return bmc150_magn_remove(&client->dev);
+ bmc150_magn_remove(&client->dev);
+
+ return 0;
}
static const struct acpi_device_id bmc150_magn_acpi_match[] = {