[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200121143155.20856-1-wambui.karugax@gmail.com>
Date: Tue, 21 Jan 2020 17:31:49 +0300
From: Wambui Karuga <wambui.karugax@...il.com>
To: jani.nikula@...ux.intel.com, joonas.lahtinen@...ux.intel.com,
rodrigo.vivi@...el.com, airlied@...ux.ie, daniel@...ll.ch,
intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 0/6] conversion to struct drm_device logging macros.
This series continues the ongoing conversion to the new struct
drm_device based logging macros for debug in i915. This series was done
using the coccinelle script:
@rule1@
identifier fn, T;
@@
fn(...,struct drm_i915_private *T,...) {
<+...
(
-DRM_INFO(
+drm_info(&T->drm,
...)
|
-DRM_ERROR(
+drm_err(&T->drm,
...)
|
-DRM_WARN(
+drm_warn(&T->drm,
...)
|
-DRM_DEBUG(
+drm_dbg(&T->drm,
...)
|
-DRM_DEBUG_DRIVER(
+drm_dbg(&T->drm,
...)
|
-DRM_DEBUG_KMS(
+drm_dbg_kms(&T->drm,
...)
|
-DRM_DEBUG_ATOMIC(
+drm_dbg_atomic(&T->drm,
...)
)
...+>
}
@rule2@
identifier fn, T;
@@
fn(...) {
...
struct drm_i915_private *T = ...;
<+...
(
-DRM_INFO(
+drm_info(&T->drm,
...)
|
-DRM_ERROR(
+drm_err(&T->drm,
...)
|
-DRM_WARN(
+drm_warn(&T->drm,
...)
|
-DRM_DEBUG(
+drm_dbg(&T->drm,
...)
|
-DRM_DEBUG_KMS(
+drm_dbg_kms(&T->drm,
...)
|
-DRM_DEBUG_DRIVER(
+drm_dbg(&T->drm,
...)
|
-DRM_DEBUG_ATOMIC(
+drm_dbg_atomic(&T->drm,
...)
)
...+>
}
Wambui Karuga (6):
drm/i915/dsi: conversion to struct drm_device log macros
drm/i915/ddi: convert to struct drm_device log macros.
drm/i915/power: convert to struct drm_device macros in
display/intel_display_power.c
drm/i915/dp: conversion to struct drm_device logging macros.
drm/i915/opregion: conversion to struct drm_device logging macros.
drm/i915/hdcp: conversion to struct drm_device based logging macros
drivers/gpu/drm/i915/display/icl_dsi.c | 82 ++--
drivers/gpu/drm/i915/display/intel_ddi.c | 98 +++--
.../drm/i915/display/intel_display_power.c | 177 +++++----
drivers/gpu/drm/i915/display/intel_dp.c | 349 ++++++++++--------
drivers/gpu/drm/i915/display/intel_hdcp.c | 138 ++++---
drivers/gpu/drm/i915/display/intel_opregion.c | 134 ++++---
6 files changed, 572 insertions(+), 406 deletions(-)
--
2.17.1
Powered by blists - more mailing lists