Thread (1 message) 1 message, 1 author, 2017-10-12

[PATCH 2/2] Input: goodix - add more entries in i2c_device_id

flat view
DORMANTno replies

From: Marcin Niestroj <hidden>
Date: 2017-10-12 15:04:43
Also in: linux-devicetree
Subsystem: goodix touchscreen, input (keyboard, mouse, joystick, touchscreen) drivers, the rest · Maintainers: Hans de Goede, Dmitry Torokhov, Linus Torvalds

Possibly related (same subject, not in this thread)

Add corresponding entry in i2c_device_id table for each of_device_id
entry. This makes it possible to autoload module for goodix
touchscreen device-tree entry, based on modalias (which is generated
by stripping manufacturer prefix from compatible string).

Signed-off-by: Marcin Niestroj <redacted>
---
 drivers/input/touchscreen/goodix.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c
index 9d50d9688975..4b702b363677 100644
--- a/drivers/input/touchscreen/goodix.c
+++ b/drivers/input/touchscreen/goodix.c
@@ -902,7 +902,15 @@ static int __maybe_unused goodix_resume(struct device *dev)
 static SIMPLE_DEV_PM_OPS(goodix_pm_ops, goodix_suspend, goodix_resume);
 
 static const struct i2c_device_id goodix_ts_id[] = {
-	{ "GDIX1001:00", 0 },
+	{ "GDIX1001:00" },
+	{ "gt1151" },
+	{ "gt911" },
+	{ "gt9110" },
+	{ "gt912" },
+	{ "gt927" },
+	{ "gt9271" },
+	{ "gt928" },
+	{ "gt967" },
 	{ }
 };
 MODULE_DEVICE_TABLE(i2c, goodix_ts_id);
-- 
2.14.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help