mirror-linux/drivers/iio
Salah Triki 43c0f6456f iio: pressure: bmp280: Use IS_ERR() in bmp280_common_probe()
`devm_gpiod_get_optional()` may return non-NULL error pointer on failure.
Check its return value using `IS_ERR()` and propagate the error if
necessary.

Fixes: df6e71256c ("iio: pressure: bmp280: Explicitly mark GPIO optional")
Signed-off-by: Salah Triki <salah.triki@gmail.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250818092740.545379-2-salah.triki@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-08-18 19:22:18 +01:00
..
accel
adc iio: adc: rzg2l_adc: Set driver data before enabling runtime PM 2025-08-16 14:52:43 +01:00
addac
afe
amplifiers
buffer
cdc
chemical
common
dac
dummy
filter
frequency
gyro
health
humidity
imu iio: imu: inv_icm42600: change invalid data error to -EBUSY 2025-08-11 21:35:01 +01:00
light iio: light: as73211: Ensure buffer holes are zeroed 2025-08-16 14:58:35 +01:00
magnetometer
multiplexer
orientation
position
potentiometer
potentiostat
pressure iio: pressure: bmp280: Use IS_ERR() in bmp280_common_probe() 2025-08-18 19:22:18 +01:00
proximity
resolver
temperature
test
trigger
Kconfig
Makefile
TODO
iio_core.h
iio_core_trigger.h
industrialio-acpi.c
industrialio-backend.c
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-gts-helper.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c