Skip to contentSkip to conversation

Input: synaptics-rmi4: Add I2C transport driver

PATCH Superseded Andrew Duggan 1 participant 1 message Jan 14, 2016

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

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

Add the transport driver for devices using RMI4 over I2C.

---
 drivers/input/rmi4/Kconfig   |  11 ++
 drivers/input/rmi4/Makefile  |   3 +
 drivers/input/rmi4/rmi_i2c.c | 385 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 399 insertions(+)
 create mode 100644 drivers/input/rmi4/rmi_i2c.c
drivers/input/rmi4/Kconfig +11 -0
index 75ce185..42e0f00 100644
@@ -10,3 +10,14 @@ config RMI4_CORE
 	  If unsure, say Y.
 
 	  This feature is not currently available as a loadable module.
+
+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.
+
+	  This feature is not currently available as a loadable module.
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 +385 -0

385 lines not on this page · raw message

Signature · 1 line
2.5.0