OpenCloudOS-Kernel/drivers/iio/dac
Uwe Kleine-König a0386bba70
spi: make remove callback a void function
The value returned by an spi driver's remove function is mostly ignored.
(Only an error message is printed if the value is non-zero that the
error is ignored.)

So change the prototype of the remove function to return no value. This
way driver authors are not tempted to assume that passing an error to
the upper layer is a good idea. All drivers are adapted accordingly.
There is no intended change of behaviour, all callbacks were prepared to
return 0 before.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Claudius Heine <ch@denx.de>
Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org> # For MMC
Acked-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Acked-by: Łukasz Stelmach <l.stelmach@samsung.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220123175201.34839-6-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-02-09 13:00:45 +00:00
..
Kconfig drivers:iio:dac: Add AD3552R driver support 2021-12-16 18:00:55 +00:00
Makefile drivers:iio:dac: Add AD3552R driver support 2021-12-16 18:00:55 +00:00
ad3552r.c drivers:iio:dac: Add AD3552R driver support 2021-12-16 18:00:55 +00:00
ad5064.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ad5360.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ad5380.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ad5421.c iio: dac: ad5421: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:02:54 +01:00
ad5446.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ad5449.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ad5504.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ad5592r-base.c iio: dac: ad5592r: Make ad5592r_remove() return void 2021-10-19 08:30:45 +01:00
ad5592r-base.h iio: dac: ad5592r: Make ad5592r_remove() return void 2021-10-19 08:30:45 +01:00
ad5592r.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ad5593r.c iio: dac: ad5592r: Make ad5592r_remove() return void 2021-10-19 08:30:45 +01:00
ad5624r.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5624r_spi.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ad5686-spi.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ad5686.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ad5686.h iio: dac: ad5686: Make ad5686_remove() return void 2021-10-19 08:30:45 +01:00
ad5696-i2c.c iio: dac: ad5686: Make ad5686_remove() return void 2021-10-19 08:30:45 +01:00
ad5755.c iio:dac:ad5755: Switch to generic firmware properties and drop pdata 2021-12-12 17:12:28 +00:00
ad5758.c iio:dac:ad5758: Drop unused of specific headers. 2021-12-12 17:12:34 +00:00
ad5761.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ad5764.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ad5766.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ad5770r.c iio: ad5770r: make devicetree property reading consistent 2021-09-14 12:00:32 +01:00
ad5791.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ad7293.c iio:dac:ad7293: add support for AD7293 2021-12-04 16:22:41 +00:00
ad7303.c iio: dac: ad7303: convert probe to full device-managed 2021-10-17 11:05:53 +01:00
ad8801.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
cio-dac.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
dpot-dac.c iio:dac:dpot-dac: Swap of.h for mod_devicetable.h 2021-12-12 17:12:39 +00:00
ds4424.c iio: dac: ds4424: Make use of the helper function dev_err_probe() 2021-10-19 08:30:43 +01:00
lpc18xx_dac.c iio:dac:lpc18xx_dac: Swap from of* to mod_devicetable.h 2021-12-12 17:12:43 +00:00
ltc1660.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ltc2632.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
m62332.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
max517.c iio:dac:max517.c: Use devm_iio_device_register() 2021-03-25 19:13:52 +00:00
max5821.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
mcp4725.c iio:dac:mcp4725: Suppress clang W=1 warning about pointer to enum conversion. 2021-12-21 15:10:09 +00:00
mcp4922.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
stm32-dac-core.c iio: dac: stm32-dac: Make use of the helper function dev_err_probe() 2021-10-19 08:30:44 +01:00
stm32-dac-core.h iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
stm32-dac.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ti-dac082s085.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ti-dac5571.c iio: expose shared parameter in IIO_ENUM_AVAILABLE 2021-11-27 16:12:23 +00:00
ti-dac7311.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ti-dac7612.c iio: dac: ti-dac7612: Replace indio_dev->mlock with own device lock 2020-09-16 18:56:22 +01:00
vf610_dac.c iio: Remove superfluous of_node assignments 2020-06-14 14:20:08 +01:00