Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2191ce83 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: ft5x06_ts: add gesture feature support"

parents bb87d740 c098cff4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ Optional properties:
				min y, max x and max y values
 - focaltech,fw-name	: specify the firmware file name
 - focaltech,psensor-support	: specify whether support the proximity sensor
 - focaltech,gesture-support	: specify whether support gesture feature

Example:
	i2c@f9923000{
@@ -98,5 +99,6 @@ Example:
			focaltech,fw-delay-era-flsh-ms = <2000>;
			focaltech,fw-auto-cal;
			focaltech,psensor-support;
			focaltech,gesture-support;
		};
	};
+9 −0
Original line number Diff line number Diff line
@@ -946,6 +946,15 @@ config TOUCHSCREEN_FT5X06_PSENSOR

         If unsure, say N.

config TOUCHSCREEN_FT5X06_GESTURE
       tristate "FocalTech gesture feature support"
       depends on TOUCHSCREEN_FT5X06
       help
         Say Y here if you want to support ft5x06's gesture
         feature.

         If unsure, say N.

config TOUCHSCREEN_MSTAR21XX
       tristate "mstar touchscreens"
       depends on I2C
+460 −77

File changed.

Preview size limit exceeded, changes collapsed.

+9 −0
Original line number Diff line number Diff line
@@ -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);
};