drm/i915: debug print on backlight register
authorJani Nikula <jani.nikula@intel.com>
Fri, 8 Nov 2013 14:49:01 +0000 (16:49 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 13 Nov 2013 10:20:37 +0000 (11:20 +0100)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_panel.c

index 9a55b36370b3e04d3b2d9b20d3c08623772b7f4b..3dd9f57da69cf68d1508a33d8215a7cdfece83b5 100644 (file)
@@ -1065,6 +1065,12 @@ int intel_panel_setup_backlight(struct drm_connector *connector)
 
        panel->backlight.present = true;
 
+       DRM_DEBUG_KMS("backlight initialized, %s, brightness %u/%u, "
+                     "sysfs interface %sregistered\n",
+                     panel->backlight.enabled ? "enabled" : "disabled",
+                     panel->backlight.level, panel->backlight.max,
+                     panel->backlight.device ? "" : "not ");
+
        return 0;
 }