]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: adi-axi-adc: Make use of dev_err_probe()
authorNuno Sá <nuno.sa@analog.com>
Fri, 19 Dec 2025 15:40:38 +0000 (15:40 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 21 Dec 2025 11:42:52 +0000 (11:42 +0000)
commit634a6316617e2ced7016b002d0b284a1502e9601
treecf74ee9c7fbf52e393e2674bd7f71cc5346f3d24
parent47d323ce1e8934be36ec475b3bed7ad90d15d35d
iio: adc: adi-axi-adc: Make use of dev_err_probe()

Be consistent and use dev_err_probe() as in all other places in the
.probe() path.

While at it, remove the line break in the version condition. Yes, it
goes over the 80 column limit but I do think the line break hurts
readability in this case. And use a struct device *dev helper for
neater code.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/adi-axi-adc.c