]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: temperature: ltc2983: convert to dev_err_probe()
authorNuno Sa <nuno.sa@analog.com>
Thu, 6 Jun 2024 07:22:38 +0000 (09:22 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 30 Jun 2024 11:27:25 +0000 (12:27 +0100)
commita00838cae079b9b9b90969c2b7b031b1bfd9ab3a
tree47b4d72d1970fc6fc2697bf1567ffd74b2a4876c
parentdbbe7eaf0e4795bf003ac06872aaf52b6b6b1310
iio: temperature: ltc2983: convert to dev_err_probe()

Use dev_err_probe() (and variants) in the probe() path. While at it, made
some simple improvements:
 * Explicitly included the err.h and errno.h headers;
 * Removed some unnecessary line breaks;
 * Removed a redundant 'else';
 * Added some missing \n to prink.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240606-dev-add_dev_errp_probe-v3-2-51bb229edd79@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/temperature/ltc2983.c