Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752153AbdGGGsk (ORCPT ); Fri, 7 Jul 2017 02:48:40 -0400 Received: from zimbra.gr13.net ([46.4.151.110]:24798 "EHLO zimbra.gr13.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750905AbdGGGsj (ORCPT ); Fri, 7 Jul 2017 02:48:39 -0400 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Subject: [PATCH] include: platform_device: add pdev_info(), pdev_warn, ... convencience macros Date: Fri, 7 Jul 2017 08:48:22 +0200 Message-Id: <20170707064822.10630-1-enrico.weigelt@gr13.net> X-Mailer: git-send-email 2.11.0.rc0.7.gbe5a750 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 900 Lines: 22 --- 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