mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
lcd: add lcd resume alarm filter function [1/1]
PD#SWPL-3362 Problem: add lcd resume alarm filter function Solution: add lcd resume alarm filter function Verify: verified by t962x_r311 Change-Id: Ia4c219c76d253b4ecc16784193dc06a164d7a217 Signed-off-by: Shaochan Liu <shaochan.liu@amlogic.com>
This commit is contained in:
committed by
Dongjin Kim
parent
445dbd8d19
commit
f5d31c5457
@@ -36,6 +36,7 @@
|
||||
#ifdef CONFIG_OF
|
||||
#include <linux/of.h>
|
||||
#endif
|
||||
#include <linux/amlogic/pm.h>
|
||||
#include <linux/amlogic/cpu_version.h>
|
||||
#include <linux/amlogic/media/vout/vinfo.h>
|
||||
#include <linux/amlogic/media/vout/vout_notify.h>
|
||||
@@ -1419,6 +1420,10 @@ static int lcd_remove(struct platform_device *pdev)
|
||||
|
||||
static int lcd_resume(struct platform_device *pdev)
|
||||
{
|
||||
if ((get_resume_method() == RTC_WAKEUP) ||
|
||||
(get_resume_method() == AUTO_WAKEUP))
|
||||
return 0;
|
||||
|
||||
if ((lcd_driver->lcd_status & LCD_STATUS_VMODE_ACTIVE) == 0)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user