Skip to contentSkip to conversation

Input: synaptics-rmi4: Add I2C transport driver

PATCH Superseded Andrew Duggan 2 participants 3 messages Feb 10, 2016

Subsystems (2)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 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 | 388 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 400 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 +388 -0

388 lines not on this page · raw message

Signature · 1 line
2.5.0
#1 lore raw

[PATCH] Input: synaptics-rmi4: fix platform_no_drv_owner.cocci warnings

drivers/input/rmi4/rmi_i2c.c:373:3-8: No need to set .owner here. The core will do it.

drivers/input/rmi4/rmi_i2c.c:373:3-8: No need to set .owner here. The core will do it.

Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

---

 rmi_i2c.c |    1 -
 1 file changed, 1 deletion(-)
drivers/input/rmi4/rmi_i2c.c +0 -1
@@ -370,7 +370,6 @@ MODULE_DEVICE_TABLE(i2c, rmi_id);
 
 static struct i2c_driver rmi_i2c_driver = {
 	.driver = {
-		.owner	= THIS_MODULE,
 		.name	= "rmi4_i2c",
 		.pm	= &rmi_i2c_pm,
 	},
#2 lore raw
In reply to Andrew Duggan
coccinelle warnings: (new ones prefixed by >>)

Hi Andrew,

[auto build test WARNING on input/next]
[also build test WARNING on v4.5-rc3 next-20160209]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Andrew-Duggan/Input-synaptics-rmi4-Synaptics-RMI4-Driver/20160210-094628
base:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next

coccinelle warnings: (new ones prefixed by >>)

>> drivers/input/rmi4/rmi_i2c.c:373:3-8: No need to set .owner here. The core will do it.

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation