diff options
author | Mao Li <maol@codeaurora.org> | 2014-11-27 03:43:00 -0500 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-08-30 22:15:36 -0700 |
commit | 1a0b4f1561faf55daa315ae6473f885808df90f8 (patch) | |
tree | 168785db24feebb9ec0f65866a1a7e31308a6532 /include/linux/input | |
parent | ff1443ebaacce17599b17f126de3ac161fc0e4a2 (diff) |
input: ft5x06_ts: add gesture feature support
Focaltech touch controller FT6436 support new feature Screen-off-Gesture.
It is able to turn on the screen by drawing gestures on the touch screen
when the screen is during off status. Enable the FT CTP driver to support
the screen off gesture recognization.
This patch is propagated from msm-3.18 kernel.
'commit 5cc0bff80d65 ("input: ft5x06_ts: add gesture feature support")'
Also cleared the following checkpatch warnings.
- Missing a blank line after declarations
- Missing a blank line after declarations
- Comparisons should place the constant on the right side of the test.
Change-Id: I77d111d3ef800b636a337221d7e605f746a113dd
Signed-off-by: Mao Li <maol@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
Diffstat (limited to 'include/linux/input')
-rw-r--r-- | include/linux/input/ft5x06_ts.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/input/ft5x06_ts.h b/include/linux/input/ft5x06_ts.h index bd37af71fe0d..0b216da7d507 100644 --- a/include/linux/input/ft5x06_ts.h +++ b/include/linux/input/ft5x06_ts.h @@ -42,6 +42,14 @@ struct ft5x06_psensor_platform_data { struct ft5x06_ts_data *data; }; +struct ft5x06_gesture_platform_data { + int gesture_enable_to_set; /* enable/disable gesture */ + int in_pocket; /* whether in pocket mode or not */ + struct device *dev; + struct class *gesture_class; + struct ft5x06_ts_data *data; +}; + struct ft5x06_ts_platform_data { struct fw_upgrade_info info; const char *name; @@ -69,6 +77,7 @@ struct ft5x06_ts_platform_data { bool i2c_pull_up; bool ignore_id_check; bool psensor_support; + bool gesture_support; int (*power_init)(bool); int (*power_on)(bool); }; |