diff options
Diffstat (limited to 'fts.h')
-rw-r--r-- | fts.h | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -33,7 +33,9 @@ #define _LINUX_FTS_I2C_H_ #include <linux/device.h> +#ifdef CONFIG_TOUCHSCREEN_HEATMAP #include <linux/input/heatmap.h> +#endif #include <linux/pm_qos.h> #include <drm/drm_panel.h> #include "fts_lib/ftsSoftware.h" @@ -204,7 +206,7 @@ /**@}*/ /*********************************************************/ - +#ifdef CONFIG_TOUCHSCREEN_HEATMAP /* **** LOCAL HEATMAP FEATURE *** */ #define LOCAL_HEATMAP_WIDTH 7 #define LOCAL_HEATMAP_HEIGHT 7 @@ -223,7 +225,7 @@ struct heatmap_report { strength_t data[LOCAL_HEATMAP_WIDTH * LOCAL_HEATMAP_HEIGHT]; } __attribute__((packed)); /* **** END **** */ - +#endif /* * Configuration mode * @@ -289,7 +291,9 @@ struct fts_hw_platform_data { int x_axis_max; int y_axis_max; bool auto_fw_update; +#ifdef CONFIG_TOUCHSCREEN_HEATMAP bool heatmap_mode_full_init; +#endif struct drm_panel *panel; u32 initial_panel_index; }; @@ -320,12 +324,13 @@ typedef enum { * (LOCAL_HEATMAP_WIDTH * LOCAL_HEATMAP_HEIGHT) * FTS_HEATMAP_FULL - read full mutual sense strength frame */ +#ifdef CONFIG_TOUCHSCREEN_HEATMAP enum { FTS_HEATMAP_OFF = 0, FTS_HEATMAP_PARTIAL = 1, FTS_HEATMAP_FULL = 2 }; - +#endif /* * Forward declaration */ @@ -400,9 +405,9 @@ struct fts_ts_info { struct completion bus_resumed; /* resume_work complete */ struct pm_qos_request pm_qos_req; - +#ifdef CONFIG_TOUCHSCREEN_HEATMAP struct v4l2_heatmap v4l2; - +#endif struct delayed_work fwu_work; /* Work for fw update */ struct workqueue_struct *fwu_workqueue; /* Fw update work queue */ event_dispatch_handler_t *event_dispatch_table; /* Dispatch table */ @@ -453,9 +458,9 @@ struct fts_ts_info { int stylus_enabled; /* Stylus mode */ int cover_enabled; /* Cover mode */ int grip_enabled; /* Grip mode */ - +#ifdef CONFIG_TOUCHSCREEN_HEATMAP int heatmap_mode; /* heatmap mode*/ - +#endif /* Stop changing motion filter and keep fw design */ bool use_default_mf; /* Motion filter finite state machine (FSM) state */ |