Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4292 → Rev 4293

/drivers/video/drm/i915/intel_panel.c
490,6 → 490,17
struct drm_i915_private *dev_priv = dev->dev_private;
unsigned long flags;
 
/*
* Do not disable backlight on the vgaswitcheroo path. When switching
* away from i915, the other client may depend on i915 to handle the
* backlight. This will leave the backlight on unnecessarily when
* another client is not activated.
*/
if (dev->switch_power_state == DRM_SWITCH_POWER_CHANGING) {
DRM_DEBUG_DRIVER("Skipping backlight disable on vga switch\n");
return;
}
 
spin_lock_irqsave(&dev_priv->backlight.lock, flags);
 
dev_priv->backlight.enabled = false;