]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915/crt: use struct drm_device based logging
authorJani Nikula <jani.nikula@intel.com>
Thu, 2 Apr 2020 11:48:07 +0000 (14:48 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 8 Apr 2020 10:49:34 +0000 (13:49 +0300)
Convert all the DRM_* logging macros to the struct drm_device based
macros to provide device specific logging.

No functional changes.

Cc: Wambui Karuga <wambui.karugax@gmail.com>
Reviewed-by: Wambui Karuga <wambui.karugax@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200402114819.17232-5-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_crt.c

index 80c91404046f6faa92f445fece1fa9c4e77012ab..a59ecbed000478b7571e7fa0a3f7eab0cdafadcf 100644 (file)
@@ -603,7 +603,8 @@ static struct edid *intel_crt_get_edid(struct drm_connector *connector,
        edid = drm_get_edid(connector, i2c);
 
        if (!edid && !intel_gmbus_is_forced_bit(i2c)) {
-               DRM_DEBUG_KMS("CRT GMBUS EDID read failed, retry using GPIO bit-banging\n");
+               drm_dbg_kms(connector->dev,
+                           "CRT GMBUS EDID read failed, retry using GPIO bit-banging\n");
                intel_gmbus_force_bit(i2c, true);
                edid = drm_get_edid(connector, i2c);
                intel_gmbus_force_bit(i2c, false);