diff mbox

[for,sre] Fix "backlight" on N9

Message ID 20171115231811.GA25191@amd (mailing list archive)
State New, archived
Headers show

Commit Message

Pavel Machek Nov. 15, 2017, 11:18 p.m. UTC
Hi!

This should get "backlight" to work on N9/N950.

First hunk may not apply to you.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
diff mbox

Patch

diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c
index 24b459e..57827a1 100644
--- a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c
+++ b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c
@@ -374,8 +374,6 @@  static int dsicm_bl_update_status(struct backlight_device *dev)
 	else
 		level = 0;
 
-	level = 0xff;
-
 	dev_dbg(&ddata->pdev->dev, "update brightness to %d\n", level);
 
 	mutex_lock(&ddata->lock);
@@ -1382,6 +1380,7 @@  static int dsicm_probe(struct platform_device *pdev)
 	if (ddata->use_dsi_backlight) {
 		struct backlight_properties props = { 0 };
 		props.max_brightness = 255;
+		props.brightness = 128;
 		props.type = BACKLIGHT_RAW;
 
 		bldev = devm_backlight_device_register(dev, dev_name(dev),