kernel_samsung_a53x/drivers/iio/light
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
..
acpi-als.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
adjd_s311.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
adux1020.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
al3010.c iio: light: al3010: Fix an error handling path in al3010_probe() 2024-12-17 13:24:16 +01:00
al3320a.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
apds9300.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
apds9960.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
as73211.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bh1750.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bh1780.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cm3232.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cm3323.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cm3605.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cm32181.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cm36651.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cros_ec_light_prox.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gp2ap002.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gp2ap020a00f.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hid-sensor-als.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hid-sensor-prox.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iqs621-als.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
isl29018.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
isl29028.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
isl29125.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jsa1212.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lm3533-als.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ltr501.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lv0104cs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
max44000.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
max44009.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
noa1305.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opt3001.c Revert "iio: light: opt3001: add missing full-scale range value" 2024-11-24 00:22:52 +01:00
pa12203001.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpr0521.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
si1133.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
si1145.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_uvis25.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_uvis25_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_uvis25_i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_uvis25_spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stk3310.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcs3414.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcs3472.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tsl2563.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tsl2583.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tsl2772.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tsl4531.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
us5182d.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vcnl4000.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vcnl4035.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
veml6030.c Revert "iio: light: veml6030: fix ALS sensor resolution" 2024-11-24 00:22:52 +01:00
veml6070.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vl6180.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zopt2201.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00