[RFC 07/10] drm/i915/config: Add init-time configuration of eDP backlight settings.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Allow the configuration file to overide the backlight max and level
settings.

Signed-off-by: Bob Paauwe <bob.j.paauwe@xxxxxxxxx>
---
 drivers/gpu/drm/i915/intel_panel.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c
index d8686ce..54c8cef 100644
--- a/drivers/gpu/drm/i915/intel_panel.c
+++ b/drivers/gpu/drm/i915/intel_panel.c
@@ -1326,6 +1326,14 @@ int intel_panel_setup_backlight(struct drm_connector *connector, enum pipe pipe)
 		return ret;
 	}
 
+	/* Allow config to overide backlight settings */
+	intel_config_get_integer(dev_priv, CFG_CONNECTOR,
+				 connector->name, "backlight maximum",
+				 &panel->backlight.max);
+	intel_config_get_integer(dev_priv, CFG_CONNECTOR,
+				 connector->name, "backlight level",
+				 &panel->backlight.level);
+
 	panel->backlight.present = true;
 
 	DRM_DEBUG_KMS("Connector %s backlight initialized, %s, brightness %u/%u\n",
-- 
2.1.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux