OpenCloudOS-Kernel/drivers/iio/pressure
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 iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER 2021-05-10 14:01:48 +01:00
Makefile iio: pressure: icp10100: add driver for InvenSense ICP-101xx 2020-03-08 17:28:52 +00:00
abp060mg.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
bmp280-core.c iio: pressure: bmp280: Use new PM macros 2022-01-12 19:59:06 +01:00
bmp280-i2c.c iio: pressure: bmp280: Use new PM macros 2022-01-12 19:59:06 +01:00
bmp280-regmap.c iio: pressure: bmp280: remove unneeded semicolon 2020-11-01 14:58:54 +00:00
bmp280-spi.c iio: pressure: bmp280: Use new PM macros 2022-01-12 19:59:06 +01:00
bmp280.h iio: pressure: bmp280: use devm action and remove labels from probe 2019-10-22 11:10:23 +01:00
cros_ec_baro.c iio: cros: unify hw fifo attributes without API changes 2021-03-25 19:13:52 +00:00
dlhl60d.c Replace HTTP links with HTTPS ones: drivers/iio 2020-07-13 15:05:59 +01:00
dps310.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
hid-sensor-press.c iio: hid-sensor-press: Add timestamp channel 2021-08-09 20:17:36 +01:00
hp03.c iio: pressure: hp03: update device probe to register with devm functions 2021-08-15 16:58:37 +01:00
hp206c.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
icp10100.c iio: pressure: icp10100: Balance runtime pm + use pm_runtime_resume_and_get() 2021-06-16 14:53:13 +01:00
mpl115.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
mpl115.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
mpl115_i2c.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
mpl115_spi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
mpl3115.c iio: mpl3115: Use scan_type.shift and realbit in mpl3115_read_raw 2021-11-17 17:51:44 +00:00
ms5611.h iio: ms5611: Simplify IO callback parameters 2021-11-17 17:51:33 +00:00
ms5611_core.c iio: ms5611: Simplify IO callback parameters 2021-11-17 17:51:33 +00:00
ms5611_i2c.c iio: ms5611: Simplify IO callback parameters 2021-11-17 17:51:33 +00:00
ms5611_spi.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
ms5637.c iio:pressure:ms5637: add ms5803 support 2021-01-22 08:52:07 +00:00
st_pressure.h iio: pressure: st_pressure: use devm_iio_triggered_buffer_setup() for buffer 2021-07-24 16:35:05 +01:00
st_pressure_buffer.c iio: pressure: st_pressure: use devm_iio_triggered_buffer_setup() for buffer 2021-07-24 16:35:05 +01:00
st_pressure_core.c iio: st_sensors: remove reference to parent device object on st_sensor_data 2021-09-14 12:00:32 +01:00
st_pressure_i2c.c iio: st_sensors: remove all driver remove functions 2021-09-14 12:00:31 +01:00
st_pressure_spi.c First set of IIO fixes for the 5.16 cycle 2021-10-24 13:08:36 +02:00
t5403.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
zpa2326.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
zpa2326.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
zpa2326_i2c.c iio:pressure:zpa2326: Drop of_match_ptr protection 2020-09-21 18:41:30 +01:00
zpa2326_spi.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00