summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac/ad5592r-base.h
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-10-13 22:32:17 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-10-19 08:30:45 +0100
commit72ba4505622ddc765f227fb24270fc202193aab5 (patch)
tree958dd79e81147e03559cedfbbf2e27abf7a05229 /drivers/iio/dac/ad5592r-base.h
parent1f10848f18555980e7379532d1859245d2d847c9 (diff)
downloadlinux-stable-72ba4505622ddc765f227fb24270fc202193aab5.tar.gz
linux-stable-72ba4505622ddc765f227fb24270fc202193aab5.tar.bz2
linux-stable-72ba4505622ddc765f227fb24270fc202193aab5.zip
iio: dac: ad5592r: Make ad5592r_remove() return void
Up to now ad5592r_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-10-u.kleine-koenig@pengutronix.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/dac/ad5592r-base.h')
-rw-r--r--drivers/iio/dac/ad5592r-base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/ad5592r-base.h b/drivers/iio/dac/ad5592r-base.h
index 23dac2f1ff8a..2a22ef691996 100644
--- a/drivers/iio/dac/ad5592r-base.h
+++ b/drivers/iio/dac/ad5592r-base.h
@@ -71,6 +71,6 @@ struct ad5592r_state {
int ad5592r_probe(struct device *dev, const char *name,
const struct ad5592r_rw_ops *ops);
-int ad5592r_remove(struct device *dev);
+void ad5592r_remove(struct device *dev);
#endif /* __DRIVERS_IIO_DAC_AD5592R_BASE_H__ */