Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1682959 > unrolled thread

[PATCH] include: platform_device: add pdev_info(), pdev_warn, ... convencience macros

Started by"Enrico Weigelt, metux IT consult" <enrico.weigelt@gr13.net>
First post2017-07-07 08:50 +0200
Last post2017-07-07 08:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] include: platform_device: add pdev_info(), pdev_warn, ... convencience macros "Enrico Weigelt, metux IT consult" <enrico.weigelt@gr13.net> - 2017-07-07 08:50 +0200

#1682959 — [PATCH] include: platform_device: add pdev_info(), pdev_warn, ... convencience macros

From"Enrico Weigelt, metux IT consult" <enrico.weigelt@gr13.net>
Date2017-07-07 08:50 +0200
Subject[PATCH] include: platform_device: add pdev_info(), pdev_warn, ... convencience macros
Message-ID<u0vfs-5W-17@gated-at.bofh.it>
---
 include/linux/platform_device.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h
index 98c2a7c7108e..723c209d3760 100644
--- a/include/linux/platform_device.h
+++ b/include/linux/platform_device.h
@@ -368,4 +368,11 @@ extern int platform_pm_restore(struct device *dev);
 #define USE_PLATFORM_PM_SLEEP_OPS
 #endif
 
+#define pdev_crit(pdev, fmt, args...)	dev_crit(&pdev->dev, fmt, ##args)
+#define pdev_err(pdev, fmt, args...)	dev_err(&pdev->dev, fmt, ##args)
+#define pdev_warn(pdev, fmt, args...)	dev_warn(&pdev->dev, fmt, ##args)
+#define pdev_notice(pdev, fmt, args...)	dev_notice(&pdev->dev, fmt, ##args)
+#define pdev_info(pdev, fmt, args...)	dev_info(&pdev->dev, fmt, ##args)
+#define pdev_debug(pdev, fmt, args...)	dev_debug(&pdev->dev, fmt, ##args)
+
 #endif /* _PLATFORM_DEVICE_H_ */
-- 
2.11.0.rc0.7.gbe5a750

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web