From: huang lin <hl@rock-chips.com>
To: djkurtz@chromium.org
Cc: thierry.reding@gmail.com, jg1.han@samsung.com,
lee.jones@linaro.org, linux-pwm@vger.kernel.org,
linux-fbdev@vger.kernel.org, linux-rockchip@lists.infradead.org,
huang lin <hl@rock-chips.com>
Subject: [PATCH 2/2] backlight: pwm: Add backlight-boot-off property
Date: Thu, 26 Feb 2015 03:39:14 +0000 [thread overview]
Message-ID: <1424921954-8621-1-git-send-email-hl@rock-chips.com> (raw)
In-Reply-To: <1424920366-7626-1-git-send-email-hl@rock-chips.com>
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 <hl@rock-chips.com>
---
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;
+
backlight_update_status(bl);
platform_set_drvdata(pdev, bl);
--
1.9.1
next prev parent reply other threads:[~2015-02-26 3:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-26 3:12 [PATCH 0/2] backlight: pwm: Add backlight-boot-off property huang lin
2015-02-26 3:39 ` huang lin [this message]
2015-02-26 5:59 ` [PATCH 2/2] " Ajay kumar
2015-02-26 8:06 ` hl
2015-02-26 8:25 ` Ajay kumar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1424921954-8621-1-git-send-email-hl@rock-chips.com \
--to=hl@rock-chips.com \
--cc=djkurtz@chromium.org \
--cc=jg1.han@samsung.com \
--cc=lee.jones@linaro.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).