From f1b211396dc5c95fed6aa4a80dd74afda35f338d Mon Sep 17 00:00:00 2001 From: Shaochan Liu Date: Sat, 29 Dec 2018 14:57:40 +0800 Subject: [PATCH] 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 --- drivers/amlogic/media/vout/lcd/lcd_debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/amlogic/media/vout/lcd/lcd_debug.c b/drivers/amlogic/media/vout/lcd/lcd_debug.c index e53ae22253e9..e09c5ddffdbd 100644 --- a/drivers/amlogic/media/vout/lcd/lcd_debug.c +++ b/drivers/amlogic/media/vout/lcd/lcd_debug.c @@ -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,