]> git.baikalelectronics.ru Git - kernel.git/commit
iio: gyro: mpu3050: Make mpu3050_common_remove() return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 25 Apr 2022 19:17:35 +0000 (21:17 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 1 May 2022 18:01:13 +0000 (19:01 +0100)
commit3269a9c6cba752e796ffa6ffe144588ea24c3f92
treed47788c2f5d9031e6fb8c8f81337526c347f74ac
parentfce0e082ac234dbab8f2f465eb11d1ed90aee115
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>
drivers/iio/gyro/mpu3050-core.c
drivers/iio/gyro/mpu3050-i2c.c
drivers/iio/gyro/mpu3050.h