Wambui Karuga 6a9cc4bfb7 drm/i915/gmbus: convert to drm_device based logging,
Conversion instances of printk based drm logging macros to use the
struct drm_device based logging macros in i915/display/intel_gmbus.c.
This was done using the following coccinelle semantic patch that
transforms based on the existence of an existing drm_i915_private
device:
@@
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,
...)
)
...+>
}

@@
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,
...)
)
...+>
}

New checkpatch warnings were addressed manually.

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/5964ce0a603e2ec0e6110c927a11234e66891258.1583766715.git.jani.nikula@intel.com
2020-03-11 12:20:43 +02:00
..
2020-02-21 05:44:40 +10:00
2020-01-20 11:42:57 +10:00
2020-01-30 08:04:01 -08:00
2020-01-30 08:04:01 -08:00
2020-02-21 05:44:40 +10:00
2020-02-21 05:44:40 +10:00
2020-01-03 11:43:44 +10:00
2020-01-20 11:42:57 +10:00
2020-02-14 12:57:57 +10:00
2020-02-21 05:44:40 +10:00
2020-02-21 05:44:40 +10:00
2020-02-21 05:44:40 +10:00
2020-02-21 05:44:40 +10:00
2020-01-30 08:04:01 -08:00
2020-02-14 12:53:00 +10:00
2020-02-07 12:22:30 +10:00
2020-01-30 08:04:01 -08:00
2020-02-21 05:44:40 +10:00
2019-12-18 16:09:12 -05:00
2020-02-21 05:44:40 +10:00
2020-02-21 05:44:40 +10:00
2020-01-14 16:22:17 -05:00
2019-10-08 18:29:00 +02:00
2020-02-06 22:01:40 +02:00
2020-01-20 11:42:57 +10:00
2020-01-14 16:22:17 -05:00
2019-12-17 13:57:54 +01:00
2019-07-22 21:24:10 +02:00
2020-01-14 16:22:17 -05:00