Skip to contentSkip to conversation

Input: synaptics-rmi4: Add I2C transport driver

PATCH In review Andrew Duggan 1 participant 1 message Feb 10, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v5 2/10 Input: synaptics-rmi4: Add I2C transport driver

Add the transport driver for devices using RMI4 over I2C.

---
 drivers/input/rmi4/Kconfig   |   9 +
 drivers/input/rmi4/Makefile  |   3 +
 drivers/input/rmi4/rmi_i2c.c | 387 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 399 insertions(+)
 create mode 100644 drivers/input/rmi4/rmi_i2c.c
drivers/input/rmi4/Kconfig +9 -0
index 5ea60e3..cc3f7c5 100644
@@ -8,3 +8,12 @@ config RMI4_CORE
 	  required for all RMI4 device support.
 
 	  If unsure, say Y.
+
+config RMI4_I2C
+	tristate "RMI4 I2C Support"
+	depends on RMI4_CORE && I2C
+	help
+	  Say Y here if you want to support RMI4 devices connected to an I2C
+	  bus.
+
+	  If unsure, say Y.
drivers/input/rmi4/Makefile +3 -0
index 12f2197..5539494 100644
@@ -1,2 +1,5 @@
 obj-$(CONFIG_RMI4_CORE) += rmi_core.o
 rmi_core-y := rmi_bus.o rmi_driver.o rmi_f01.o
+
+# Transports
+obj-$(CONFIG_RMI4_I2C) += rmi_i2c.o
drivers/input/rmi4/rmi_i2c.c new file +387 -0

387 lines not on this page · raw message

Signature · 1 line
2.5.0