[PATCH v3 0/4] dev_printk: add dev_errp_probe() helper

From: Nuno Sa
Date: Thu Jun 06 2024 - 03:20:14 EST


Main changes in v3 are Andy feedback on v2. Still note that I'm not
adding a new variant for dev_err_* that takes an error pointer and return
an int. I prefer to defer that if we really want such a variant.
Anyways, here it goes v3 log:

v1:
* https://lore.kernel.org/all/20240404-dev-add_dev_errp_probe-v1-0-d18e3eb7ec3f@xxxxxxxxxx/

v2:
* https://lore.kernel.org/all/20240423-dev-add_dev_errp_probe-v2-0-12f43c5d8b0d@xxxxxxxxxx/

v3:
* Patch 1:
- Removed parenthesis around macros;

* Patch 2:
- Removed local struct device *dev helper;
- Added missing \n to printk().

* Patch 4:
- Make sure to not double error code printing;
- Added missing new line.

---
Nuno Sa (4):
dev_printk: add new dev_err_probe() helpers
iio: temperature: ltc2983: convert to dev_err_probe()
iio: backend: make use of dev_err_cast_probe()
iio: common: scmi_iio: convert to dev_err_probe()

drivers/iio/common/scmi_sensors/scmi_iio.c | 45 +++--
drivers/iio/industrialio-backend.c | 8 +-
drivers/iio/temperature/ltc2983.c | 260 +++++++++++++----------------
include/linux/dev_printk.h | 8 +
4 files changed, 143 insertions(+), 178 deletions(-)
---
base-commit: 234cb065ad82915ff8d06ce01e01c3e640b674d2
change-id: 20240404-dev-add_dev_errp_probe-69e7524c2803
--

Thanks!
- Nuno Sá