iio: adc: hx711: use dev_err_probe()
authorDavid Lechner <dlechner@baylibre.com>
Fri, 21 Jun 2024 22:11:51 +0000 (17:11 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 25 Jun 2024 20:04:51 +0000 (21:04 +0100)
commit95e17a54e4eb63f722be70c6488cf377cae8afc6
tree01c361513352b3c9ee3ae8771e3a6db397cd4916
parentbfe339ee8e010aee2295be5b051673526581dd75
iio: adc: hx711: use dev_err_probe()

Use dev_err_probe() to simplify error returns in the probe function.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andreas Klinger <ak@it-klinger.de>
Link: https://patch.msgid.link/20240621-iio-regulator-refactor-round-2-v1-4-49e50cd0b99a@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/hx711.c