drm/i915: add some framework for backlight bl_power support
authorJani Nikula <jani.nikula@intel.com>
Wed, 13 Aug 2014 09:10:12 +0000 (12:10 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Sep 2014 08:54:18 +0000 (10:54 +0200)
commitab656bb9012b9eabc21234caa47af478ea6ceec5
tree764f3234093276529ebf52bf700da08860103f2a
parent1250d107cf9b82217a63520b0b76a947665537c2
drm/i915: add some framework for backlight bl_power support

Make backlight class sysfs bl_power a sub-state of backlight enabled, if
a backlight power connector callback is defined. It's up to the
connector callback to handle the sub-state, typically in a way that
respects panel power sequencing.

v2: Post the version that does not oops. *facepalm*.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed_by: Clinton Taylor <Clinton.A.Taylor@intel.com>
Tested_by: Clinton Taylor <Clinton.A.Taylor@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_panel.c