kernel_samsung_a53x/drivers/iio
Christophe JAILLET 698400810a iio: light: al3010: Fix an error handling path in al3010_probe()
[ Upstream commit a4b7064d34186cf4970fe0333c3b27346cf8f819 ]

If i2c_smbus_write_byte_data() fails in al3010_init(),
al3010_set_pwr(false) is not called.

In order to avoid such a situation, move the devm_add_action_or_reset()
witch calls al3010_set_pwr(false) right after a successful
al3010_set_pwr(true).

Fixes: c36b5195ab70 ("iio: light: add Dyna-Image AL3010 driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/ee5d10a2dd2b70f29772d5df33774d3974a80f30.1725993353.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:16 +01:00
..
accel
adc Revert "iio: adc: ad7124: fix chip ID mismatch" 2024-11-24 00:23:38 +01:00
addac
afe
amplifiers
buffer Revert "iio: buffer-dmaengine: fix releasing dma channel on error" 2024-11-24 00:23:38 +01:00
chemical iio: chemical: bme680: Fix sensor data read operation 2024-11-19 14:19:33 +01:00
common Revert "iio: hid-sensors: Fix an error handling path in _hid_sensor_set_report_latency()" 2024-11-24 00:22:52 +01:00
dac Revert "iio: dac: ad5770r: add missing select REGMAP_SPI in Kconfig" 2024-11-24 00:22:52 +01:00
dummy
frequency
gyro
health
humidity
imu iio: imu: inv_icm42600: delete unneeded update watermark call 2024-11-19 14:19:04 +01:00
light iio: light: al3010: Fix an error handling path in al3010_probe() 2024-12-17 13:24:16 +01:00
magnetometer Revert "iio: magnetometer: ak8975: Fix reading for ak099xx sensors" 2024-11-24 00:23:01 +01:00
multiplexer
orientation
position
potentiometer
potentiostat
pressure iio: pressure: dps310: support negative temperature values 2024-11-19 12:27:03 +01:00
proximity Revert "iio: proximity: mb1232: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig" 2024-11-24 00:22:52 +01:00
resolver
temperature
trigger
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c Revert "iio: fix scale application in iio_convert_raw_to_processed_unlocked" 2024-11-24 00:23:38 +01:00
Kconfig
Makefile
TODO