]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: light: veml6030: use dev_err_probe()
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Tue, 1 Oct 2024 20:21:15 +0000 (22:21 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 6 Oct 2024 14:09:35 +0000 (15:09 +0100)
commit081c74203a12e8aadbaadc4fd8472d373bd0ecd7
treed3caeb8eb12ca9f07a4a9a4852257dbddac998d1
parentc61d687cd5fc3a2da6dd2f18405e87ebb72f603d
iio: light: veml6030: use dev_err_probe()

Use the more convenient dev_err_probe() to get rid of the dev_err() +
return sequence in the probe error paths.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20241001-veml6035-v3-2-d789f6ff147c@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/veml6030.c