lcd: modify lcd/power show debug node [1/1]
authorShaochan Liu <shaochan.liu@amlogic.com>
Sat, 29 Dec 2018 06:57:40 +0000 (14:57 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Sun, 30 Dec 2018 09:21:58 +0000 (01:21 -0800)
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>
drivers/amlogic/media/vout/lcd/lcd_debug.c

index e53ae22..e09c5dd 100644 (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,