summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2024-10-10 10:49:17 +0100
committerMark Brown <broonie@kernel.org>2024-10-10 10:49:17 +0100
commiteaa59db7e96bbd8ca85546aa09381fa78ca1f1bd (patch)
treead28678f5971231cd4efd395eea62bcf472cb03b /include
parentb1258105f9ce5203f48a47fd2f2cec8c38c41841 (diff)
parente2fc05873905f2ee96b38a116ae86f45fe7d8e49 (diff)
Add dev_warn_probe() and improve error handling in
Merge series from Dragan Simic <dsimic@manjaro.org>: This is a small series that introduces dev_warn_probe() function, which produces warnings on failed resource acquisitions, and improves error handling in the probe paths of Rockchip SPI drivers, by using functions dev_err_probe() and dev_warn_probe() properly in multiple places. This series also performs a bunch of small, rather trivial code cleanups, to make the code neater and a bit easier to read.
Diffstat (limited to 'include')
-rw-r--r--include/linux/dev_printk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dev_printk.h b/include/linux/dev_printk.h
index ca32b5bb28eb..eb2094e43050 100644
--- a/include/linux/dev_printk.h
+++ b/include/linux/dev_printk.h
@@ -276,6 +276,7 @@ do { \
dev_driver_string(dev), dev_name(dev), ## arg)
__printf(3, 4) int dev_err_probe(const struct device *dev, int err, const char *fmt, ...);
+__printf(3, 4) int dev_warn_probe(const struct device *dev, int err, const char *fmt, ...);
/* Simple helper for dev_err_probe() when ERR_PTR() is to be returned. */
#define dev_err_ptr_probe(dev, ___err, fmt, ...) \