linux/drivers/iio/chemical
Francesco Dolcini fed99212ac treewide, serdev: change receive_buf() return type to size_t
receive_buf() is called from ttyport_receive_buf() that expects values
">= 0" from serdev_controller_receive_buf(), change its return type from
ssize_t to size_t.

The need for this clean-up was noticed while fixing a warning, see
commit 94d0539425 ("Bluetooth: btnxpuart: fix recv_buf() return value").
Changing the callback prototype to return an unsigned seems the best way
to document the API and ensure that is properly used.

GNSS drivers implementation of serdev receive_buf() callback return
directly the return value of gnss_insert_raw(). gnss_insert_raw()
returns a signed int, however this is not an issue since the value
returned is always positive, because of the kfifo_in() implementation.
gnss_insert_raw() could be changed to return also an unsigned, however
this is not implemented here as request by the GNSS maintainer Johan
Hovold.

Suggested-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/all/087be419-ec6b-47ad-851a-5e1e3ea5cfcc@kernel.org/
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> #for-iio
Reviewed-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Acked-by: Maximilian Luz <luzmaximilian@gmail.com>  # for platform/surface
Acked-by: Lee Jones <lee@kernel.org>
Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240122180551.34429-1-francesco@dolcini.it
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-27 18:13:53 -08:00
..
ags02ma.c iio: chemical: add support for Aosong AGS02MA 2023-12-17 14:44:35 +00:00
ams-iaq-core.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
atlas-ezo-sensor.c iio: chemical: atlas-ezo-sensor: Simplify probe() 2023-09-11 20:12:41 +01:00
atlas-sensor.c iio: chemical: atlas-sensor: Convert enum->pointer for data in the match tables 2023-09-11 20:12:41 +01:00
bme680_core.c iio: chemical: bme680: fix typo in comment 2022-06-11 14:35:27 +01:00
bme680_i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
bme680_spi.c iio:chemical:bme680: Move exports to IIO_BME680 namespace 2022-02-18 11:42:27 +00:00
bme680.h iio:chemical:bme680: Fix SPI read interface 2019-03-09 17:27:36 +00:00
ccs811.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
Kconfig iio: chemical: add support for Aosong AGS02MA 2023-12-17 14:44:35 +00:00
Makefile iio: chemical: add support for Aosong AGS02MA 2023-12-17 14:44:35 +00:00
pms7003.c treewide, serdev: change receive_buf() return type to size_t 2024-01-27 18:13:53 -08:00
scd4x.c iio: chemical: scd4x: Add pressure compensation 2023-07-20 19:21:30 +01:00
scd30_core.c iio: chemical: scd30_core: Switch to use dev_err_probe() 2023-01-14 16:17:34 +00:00
scd30_i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
scd30_serial.c treewide, serdev: change receive_buf() return type to size_t 2024-01-27 18:13:53 -08:00
scd30.h iio: chemical: scd30: Export dev_pm_ops instead of suspend() and resume() 2022-04-05 20:16:34 +02:00
sgp30.c iio: chemical: sgp30: Convert enum->pointer for data in the match tables 2023-09-12 10:42:03 +01:00
sgp40.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
sps30_i2c.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
sps30_serial.c treewide, serdev: change receive_buf() return type to size_t 2024-01-27 18:13:53 -08:00
sps30.c iio: chemical: sps30: Move symbol exports into IIO_SPS30 namespace 2022-06-21 21:30:31 +01:00
sps30.h iio: sps30: separate core and interface specific code 2021-05-17 13:49:10 +01:00
sunrise_co2.c iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
vz89x.c iio: chemical: vz89x: Convert enum->pointer for data in the match tables 2023-09-11 20:12:41 +01:00