drm/i915: Pass connector state to intel_panel_set_backlight_acpi
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 12 Jun 2017 10:21:14 +0000 (12:21 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 12 Jun 2017 14:06:10 +0000 (16:06 +0200)
commit90d7cd240308e3d77c414224c47f42f2362c3e21
treeec06ab518dfc0a6d886bba163333fe2f7cb1a49f
parentb037d58f976204544f4266840f3538d2ed7e01d9
drm/i915: Pass connector state to intel_panel_set_backlight_acpi

Passing the state is also needed to convert the backlight functions
to use the correct state instead of looking it up.

This is done as a separate commit to allow easier bisecting.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100022
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170612102115.23665-3-maarten.lankhorst@linux.intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_opregion.c
drivers/gpu/drm/i915/intel_panel.c