diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2016-11-17 13:30:14 +0100 |
---|---|---|
committer | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2016-11-17 16:00:36 +0100 |
commit | 08c4d7fcb3265faa2b3fbe70118f2f86c6f4a365 (patch) | |
tree | 283389c7dcae333dfb1443b42745d4c86d8feadb /drivers/gpu/drm/i915/intel_panel.c | |
parent | drm/i915: Only dump possible panel fitter config for the platform (diff) | |
download | linux-08c4d7fcb3265faa2b3fbe70118f2f86c6f4a365.tar.xz linux-08c4d7fcb3265faa2b3fbe70118f2f86c6f4a365.zip |
drm/i915: Introduce enableddisabled helper
Similar to existing yesno and onoff and use it throughout the code.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1479385814-2358-2-git-send-email-tvrtko.ursulin@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_panel.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index 374a733864d4..08ab6d762ca4 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c @@ -1722,7 +1722,7 @@ int intel_panel_setup_backlight(struct drm_connector *connector, enum pipe pipe) DRM_DEBUG_KMS("Connector %s backlight initialized, %s, brightness %u/%u\n", connector->name, - panel->backlight.enabled ? "enabled" : "disabled", + enableddisabled(panel->backlight.enabled), panel->backlight.level, panel->backlight.max); return 0; |