diff options
| author | Ping Li <pingli@codeaurora.org> | 2015-01-16 15:45:56 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:39:18 -0700 |
| commit | 002aa08637ddca1c021d42966e51c7ff9f04ad3c (patch) | |
| tree | 4866e5e8018598f7db4534ed22f2e05e8fd768a9 | |
| parent | f283ba88e6bd3df3d9589da8c0cd4092c1b2b54a (diff) | |
msm: mdss: Output backlight info to mdp stat sysfs node
Add modulated and scaled backlight values to d/mdp/stat sysfs
node so that they can be accessed from user space side.
Change-Id: I4c66978e71bcbce785c7a6ab460eab918b5e3ac6
Signed-off-by: Ping Li <pingli@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_debug.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_debug.c b/drivers/video/fbdev/msm/mdss_mdp_debug.c index a661d3b6a9a7..678b683d126f 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_debug.c +++ b/drivers/video/fbdev/msm/mdss_mdp_debug.c @@ -286,6 +286,10 @@ static void __stats_ctl_dump(struct mdss_mdp_ctl *ctl, struct seq_file *s) ctl->intf_num, ctl->play_cnt); seq_printf(s, "vsync: %08u \tunderrun: %08u\n", ctl->vsync_cnt, ctl->underrun_cnt); + if (ctl->mfd) { + seq_printf(s, "user_bl: %08u \tmod_bl: %08u\n", + ctl->mfd->bl_level, ctl->mfd->bl_level_scaled); + } } else { seq_printf(s, "wb: \tmode=%x \tplay: %08u\n", ctl->opmode, ctl->play_cnt); |
