From d93b6deaf27a3415fbfc2d6051bd7d815215d356 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Wed, 16 Oct 2024 10:46:25 +0800 Subject: [PATCH] input: touchscreen: cyttsp5: Fix build error for !PM_SLEEP drivers/input/touchscreen/cyttsp5/cyttsp5_core.c:6212:28: error: 'cyttsp5_core_late_resume' undeclared (first use in this function); did you mean 'cyttsp5_core_rt_resume'? drivers/input/touchscreen/cyttsp5/cyttsp5_core.c:6213:29: error: 'cyttsp5_core_early_suspend' undeclared (first use in this function); did you mean 'cyttsp5_core_rt_suspend'? Change-Id: I820b2bd29f8e3db7c7e8b4af81943b5a6d879a47 Signed-off-by: Tao Huang --- drivers/input/touchscreen/cyttsp5/cyttsp5_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/cyttsp5/cyttsp5_core.c b/drivers/input/touchscreen/cyttsp5/cyttsp5_core.c index 5dccaa1cf7de..841653fff81d 100644 --- a/drivers/input/touchscreen/cyttsp5/cyttsp5_core.c +++ b/drivers/input/touchscreen/cyttsp5/cyttsp5_core.c @@ -4856,6 +4856,7 @@ static int cyttsp5_core_resume(struct device *dev) return 0; } +#endif static int cyttsp5_core_early_suspend(struct tp_device *tp_d) { @@ -4896,7 +4897,6 @@ static int cyttsp5_core_late_resume(struct tp_device *tp_d) return 0; } -#endif #if NEED_SUSPEND_NOTIFIER static int cyttsp5_pm_notifier(struct notifier_block *nb,