summaryrefslogtreecommitdiff
path: root/drivers/iio/gyro/mpu3050-i2c.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-04-25 21:17:35 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-05-01 19:01:13 +0100
commitd3beaf181c2d6ad0690746db8495705f5abcafb3 (patch)
treed47788c2f5d9031e6fb8c8f81337526c347f74ac /drivers/iio/gyro/mpu3050-i2c.c
parenta9d1a34f2a025708b2eaffddc9a338e289e5bb65 (diff)
downloadlwn-d3beaf181c2d6ad0690746db8495705f5abcafb3.tar.gz
lwn-d3beaf181c2d6ad0690746db8495705f5abcafb3.zip
iio: gyro: mpu3050: Make mpu3050_common_remove() return void
This function (up to now) returns zero unconditionally, so there isn't any benefit of returning a value. Make it return void to be able to see at a glance that the return value of mpu3050_i2c_remove is always zero. This patch is a preparation for making i2c remove callbacks return void. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20220425191735.59032-1-u.kleine-koenig@pengutronix.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/gyro/mpu3050-i2c.c')
-rw-r--r--drivers/iio/gyro/mpu3050-i2c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/iio/gyro/mpu3050-i2c.c b/drivers/iio/gyro/mpu3050-i2c.c
index ef5bcbc4b45b..5b5f58baaf7f 100644
--- a/drivers/iio/gyro/mpu3050-i2c.c
+++ b/drivers/iio/gyro/mpu3050-i2c.c
@@ -86,7 +86,9 @@ static int mpu3050_i2c_remove(struct i2c_client *client)
if (mpu3050->i2cmux)
i2c_mux_del_adapters(mpu3050->i2cmux);
- return mpu3050_common_remove(&client->dev);
+ mpu3050_common_remove(&client->dev);
+
+ return 0;
}
/*