diff options
author | Jani Nikula <[email protected]> | 2014-08-12 17:11:42 +0300 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2014-09-03 10:54:21 +0200 |
commit | e6755fb78e8f20ecadf2a4080084121336624ad9 (patch) | |
tree | 8f80a5e615fbe8ca3c698974d17d426f0d9c27fb | |
parent | 73580fb764c4213d305c0d36bd8f856ae631eb42 (diff) |
drm/i915: switch off backlight for backlight class 0 brightness
Make backlight class sysfs brightness 0 value switch off the backlight
for connectors that have the backlight_power callback defined. For eDP,
this has the similar caveats regarding power savings as bl_power as only
the power sequencer backlight control is switched off.
Signed-off-by: Jani Nikula <[email protected]>
Reviewed_by: Clinton Taylor <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
-rw-r--r-- | drivers/gpu/drm/i915/intel_panel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index af5435634929..764f9283e572 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c @@ -986,7 +986,8 @@ static int intel_backlight_device_update_status(struct backlight_device *bd) */ if (panel->backlight.enabled) { if (panel->backlight_power) { - bool enable = bd->props.power == FB_BLANK_UNBLANK; + bool enable = bd->props.power == FB_BLANK_UNBLANK && + bd->props.brightness != 0; panel->backlight_power(connector, enable); } } else { |