dev_printk: add dev_errp_probe() helper
Get series with b4
b4 am [email protected] change-id 20240404-dev-add_dev_errp_probe-69e7524c2803Versions newest first
- v3 Latest4 patches 11 repliesIn review
- v24 patches 9 repliesSuperseded inferred link
- v14 patches 15 repliesSuperseded
Changes in v3 from the cover letter
* 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.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | dev_printk: add new dev_err_probe() helpersinclude/ | +8 | 4 replies | |
| 2/4 | iio: temperature: ltc2983: convert to dev_err_probe()drivers/ | +113 | 7 replies | |
| 3/4 | iio: backend: make use of dev_err_cast_probe()drivers/ | +3 | 0 replies | |
| 4/4 | iio: common: scmi_iio: convert to dev_err_probe()drivers/ | +19 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/4] dev_printk: add dev_errp_probe() helper
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/[email protected]/
v2:
* https://lore.kernel.org/all/[email protected]/
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á