touch: Insertion of DRM and RUNTIME macros

Inclusion of the DRM notifier callback macros and RUNTIME macros
in header file.

Change-Id: Ie23e7e5f94028cc9a80de47906f13b0eb5e2f8cf
Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
This commit is contained in:
Surya Teja Kudiri
2022-09-19 15:35:39 +05:30
parent 1a7ece05e4
commit ef5fab8765

View File

@@ -41,12 +41,17 @@
#define PT_PIP2_MAX_FILE_SIZE 0x18000 #define PT_PIP2_MAX_FILE_SIZE 0x18000
#define PT_PIP2_FILE_SECTOR_SIZE 0x1000 #define PT_PIP2_FILE_SECTOR_SIZE 0x1000
#ifndef CONFIG_DRM
#define CONFIG_DRM
#endif
#include <linux/device.h> #include <linux/device.h>
#include <linux/fb.h>
#include <linux/notifier.h>
#ifdef CONFIG_HAS_EARLYSUSPEND #ifdef CONFIG_HAS_EARLYSUSPEND
#include <linux/earlysuspend.h> #include <linux/earlysuspend.h>
#elif defined(CONFIG_FB) #elif defined(CONFIG_DRM)
#include <linux/notifier.h> #include <drm/drm_panel.h>
#include <linux/fb.h>
#endif #endif
#include <asm/unaligned.h> #include <asm/unaligned.h>
@@ -116,6 +121,15 @@
#endif #endif
/* Power Management Macros Enablement */ /* Power Management Macros Enablement */
#ifndef CONFIG_PM
#define CONFIG_PM
#endif
#ifndef CONFIG_PM_RUNTIME
#define CONFIG_PM_RUNTIME
#endif
#ifndef CONFIG_PM_SLEEP #ifndef CONFIG_PM_SLEEP
#define CONFIG_PM_SLEEP #define CONFIG_PM_SLEEP
#endif #endif
@@ -1453,6 +1467,7 @@ struct pt_core_data {
bool irq_wake; bool irq_wake;
bool irq_disabled; bool irq_disabled;
bool hw_detected; bool hw_detected;
bool runtime;
u8 easy_wakeup_gesture; u8 easy_wakeup_gesture;
#ifdef EASYWAKE_TSG6 #ifdef EASYWAKE_TSG6
u8 gesture_id; u8 gesture_id;
@@ -1494,7 +1509,7 @@ struct pt_core_data {
int raw_cmd_status; int raw_cmd_status;
#ifdef CONFIG_HAS_EARLYSUSPEND #ifdef CONFIG_HAS_EARLYSUSPEND
struct early_suspend es; struct early_suspend es;
#elif defined(CONFIG_FB) #elif defined(CONFIG_FB) || defined(CONFIG_DRM)
struct notifier_block fb_notifier; struct notifier_block fb_notifier;
enum pt_fb_state fb_state; enum pt_fb_state fb_state;
#endif #endif