diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-10-13 22:32:09 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-10-19 08:30:45 +0100 |
commit | fa0b148eb396da85e34469d22730da5dfba30f0d (patch) | |
tree | 53a73b7f4fce6fbc706d6a4bb85fb9fc2f97a8b0 /fs | |
parent | 885b9790c25a5fb8b253971c107744b17d8c29e7 (diff) | |
download | linux-fa0b148eb396da85e34469d22730da5dfba30f0d.tar.bz2 |
iio: accel: bma400: Make bma400_remove() return void
When an i2c or spi driver's remove function returns a non-zero error
code nothing happens apart from emitting a generic error message. Make
this error message more device specific and return zero instead in the
remove callbacks. As the return value of bma400_remove() is unused then,
change the function to not yield a return value.
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-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions