Thread (5 messages) 5 messages, 2 authors, 2015-02-26

Re: [PATCH 2/2] backlight: pwm: Add backlight-boot-off property

flat view

From: Ajay kumar <hidden>
Date: 2015-02-26 05:59:04
Also in: linux-pwm

Hi Huang,

On Thu, Feb 26, 2015 at 9:09 AM, huang lin [off-list ref] wrote:
quoted hunk ↗ jump to hunk
Add backlight-boot-off property, so we can keeping the
backlight disabled at boot until it is enabled implicitly
by a panel driver, or explicitly by userspace

Signed-off-by: huang lin <redacted>

---

 drivers/video/backlight/pwm_bl.c | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c
index 3a145a6..dece351 100644
--- a/drivers/video/backlight/pwm_bl.c
+++ b/drivers/video/backlight/pwm_bl.c
@@ -319,6 +319,10 @@ static int pwm_backlight_probe(struct platform_device *pdev)
        }

        bl->props.brightness = data->dft_brightness;
+
+       if (of_find_property(pdev->dev.of_node, "backlight-boot-off", NULL))
+               bl->props.power = FB_BLANK_POWERDOWN;
+
You need to check this. Originally, Thierry proposed it.
http://permalink.gmane.org/gmane.linux.drivers.devicetree/84604
        backlight_update_status(bl);

        platform_set_drvdata(pdev, bl);
--
1.9.1


--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help