lcd: modify lcd/power show debug node [1/1]

PD#SWPL-1005

Problem:
modify lcd/power show debug node

Solution:
1,modify lcd/power node to show lcd power on/off

Verify:
verified by t962x_r311

Change-Id: Ic2b293ac14a3139b572a2e36ac101f9f54da2139
Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
This commit is contained in:
Shaochan Liu
2018-12-29 14:57:40 +08:00
committed by Jianxin Pan
parent 7de4b8f887
commit f1b211396d

View File

@@ -2164,15 +2164,15 @@ static ssize_t lcd_debug_power_show(struct class *class,
struct aml_lcd_drv_s *lcd_drv = aml_lcd_get_driver();
int state;
if ((lcd_drv->lcd_status & BL_STATE_LCD_ON) == 0) {
if ((lcd_drv->lcd_status & LCD_STATUS_ON) == 0) {
state = 0;
} else {
if (lcd_drv->lcd_status & BL_STATE_BL_POWER_ON)
if (lcd_drv->lcd_status & LCD_STATUS_IF_ON)
state = 1;
else
state = 0;
}
return sprintf(buf, "backlight power state: %d\n", state);
return sprintf(buf, "lcd power state: %d\n", state);
}
static ssize_t lcd_debug_power_store(struct class *class,