summaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/kxsd9.h
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-10-13 22:32:12 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-10-19 09:30:45 +0200
commitdf2171c668bdecc9122cc8f66bd0639baeae5c6b (patch)
tree00e015af91514481ed7cd9eeb8980c7b43dc088f /drivers/iio/accel/kxsd9.h
parentiio: accel: bmi088: Make bmi088_accel_core_remove() return void (diff)
downloadlinux-df2171c668bdecc9122cc8f66bd0639baeae5c6b.tar.xz
linux-df2171c668bdecc9122cc8f66bd0639baeae5c6b.zip
iio: accel: kxsd9: Make kxsd9_common_remove() return void
Up to now kxsd9_common_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-5-u.kleine-koenig@pengutronix.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/kxsd9.h')
-rw-r--r--drivers/iio/accel/kxsd9.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/accel/kxsd9.h b/drivers/iio/accel/kxsd9.h
index 5e3ca212f5be..c04dbfa4e0d0 100644
--- a/drivers/iio/accel/kxsd9.h
+++ b/drivers/iio/accel/kxsd9.h
@@ -8,6 +8,6 @@
int kxsd9_common_probe(struct device *dev,
struct regmap *map,
const char *name);
-int kxsd9_common_remove(struct device *dev);
+void kxsd9_common_remove(struct device *dev);
extern const struct dev_pm_ops kxsd9_dev_pm_ops;