Rev 5060 | Rev 6084 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5060 | Rev 5354 | ||
---|---|---|---|
Line 394... | Line 394... | ||
394 | } |
394 | } |
Line 395... | Line 395... | ||
395 | 395 | ||
396 | return -EINVAL; |
396 | return -EINVAL; |
Line -... | Line 397... | ||
- | 397 | } |
|
- | 398 | ||
- | 399 | /* |
|
- | 400 | * If the vendor backlight interface is not in use and ACPI backlight interface |
|
- | 401 | * is broken, do not bother processing backlight change requests from firmware. |
|
- | 402 | */ |
|
- | 403 | static bool should_ignore_backlight_request(void) |
|
- | 404 | { |
|
- | 405 | return acpi_video_backlight_support() && |
|
- | 406 | !acpi_video_verify_backlight_support(); |
|
397 | } |
407 | } |
398 | 408 | ||
399 | static u32 asle_set_backlight(struct drm_device *dev, u32 bclp) |
409 | static u32 asle_set_backlight(struct drm_device *dev, u32 bclp) |
400 | { |
410 | { |
401 | struct drm_i915_private *dev_priv = dev->dev_private; |
411 | struct drm_i915_private *dev_priv = dev->dev_private; |
Line 402... | Line 412... | ||
402 | struct intel_connector *intel_connector; |
412 | struct intel_connector *intel_connector; |
Line 403... | Line -... | ||
403 | struct opregion_asle __iomem *asle = dev_priv->opregion.asle; |
- | |
404 | - | ||
405 | DRM_DEBUG_DRIVER("bclp = 0x%08x\n", bclp); |
- | |
406 | - | ||
407 | /* |
413 | struct opregion_asle __iomem *asle = dev_priv->opregion.asle; |
408 | * If the acpi_video interface is not supposed to be used, don't |
414 | |
409 | * bother processing backlight level change requests from firmware. |
415 | DRM_DEBUG_DRIVER("bclp = 0x%08x\n", bclp); |
410 | */ |
416 | |
Line 411... | Line 417... | ||
411 | if (!acpi_video_verify_backlight_support()) { |
417 | if (should_ignore_backlight_request()) { |