Skip to contentSkip to conversation

Input: synaptics-rmi4: Add support for F12

PATCH Superseded Andrew Duggan 1 participant 1 message Feb 3, 2016

Subsystems (2)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 6/10 Input: synaptics-rmi4: Add support for F12

Function 12 implements 2D touch position sensor for newer Synaptics touch devices. It replaces F11 and no device will contain both functions.

---
 drivers/input/rmi4/Kconfig      |  11 +
 drivers/input/rmi4/Makefile     |   1 +
 drivers/input/rmi4/rmi_bus.c    |   3 +
 drivers/input/rmi4/rmi_driver.h |   1 +
 drivers/input/rmi4/rmi_f12.c    | 457 ++++++++++++++++++++++++++++++++++++++++
 5 files changed, 473 insertions(+)
 create mode 100644 drivers/input/rmi4/rmi_f12.c
drivers/input/rmi4/Kconfig +11 -0
index dc7de6b..aabb854 100644
@@ -32,3 +32,14 @@ config RMI4_F11
 	  Function 11 provides 2D multifinger pointing for touchscreens and
 	  touchpads. For sensors that support relative pointing, F11 also
 	  provides mouse input.
+
+config RMI4_F12
+	bool "RMI4 Function 12 (2D pointing)"
+	select RMI4_2D_SENSOR
+	depends on RMI4_CORE
+	help
+	  Say Y here if you want to add support for RMI4 function 12.
+
+	  Function 12 provides 2D multifinger pointing for touchscreens and
+	  touchpads. For sensors that support relative pointing, F12 also
+	  provides mouse input.
drivers/input/rmi4/Makefile +1 -0
index 9e7424a..d01e703 100644
@@ -5,6 +5,7 @@ rmi_core-$(CONFIG_RMI4_2D_SENSOR) += rmi_2d_sensor.o
 
 # Function drivers
 rmi_core-$(CONFIG_RMI4_F11) += rmi_f11.o
+rmi_core-$(CONFIG_RMI4_F12) += rmi_f12.o
 
 # Transports
 obj-$(CONFIG_RMI4_I2C) += rmi_i2c.o
drivers/input/rmi4/rmi_bus.c +3 -0
index 19e6c4e..106ecec 100644
@@ -309,6 +309,9 @@ static struct rmi_function_handler *fn_handlers[] = {
 #ifdef CONFIG_RMI4_F11
 	&rmi_f11_handler,
 #endif
+#ifdef CONFIG_RMI4_F12
+	&rmi_f12_handler,
+#endif
 };
 
 #define RMI_FN_HANDLER_ARRAY_SIZE \
drivers/input/rmi4/rmi_driver.h +1 -0
index 09d2aa7..ed9127d 100644
@@ -100,4 +100,5 @@ char *rmi_f01_get_product_ID(struct rmi_function *fn);
 
 extern struct rmi_function_handler rmi_f01_handler;
 extern struct rmi_function_handler rmi_f11_handler;
+extern struct rmi_function_handler rmi_f12_handler;
 #endif
drivers/input/rmi4/rmi_f12.c new file +457 -0

457 lines not on this page · raw message

Signature · 1 line
2.5.0