aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2024-09-10 20:36:06 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-09-30 09:21:03 +0100
commita4b7064d34186cf4970fe0333c3b27346cf8f819 (patch)
treeb4877af7986fcd1e10a194323601cdc783ed3099 /tools/perf/scripts/python/bin
parentiio: proximity: vl53l0x-i2c: Added continuous mode support (diff)
downloadlinux-a4b7064d34186cf4970fe0333c3b27346cf8f819.tar.gz
linux-a4b7064d34186cf4970fe0333c3b27346cf8f819.zip
iio: light: al3010: Fix an error handling path in al3010_probe()
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>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions