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>
This commit is contained in:
Ping Li 2015-01-16 15:45:56 -08:00 committed by David Keitel
parent f283ba88e6
commit 002aa08637

View file

@ -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);