Browse Source

HACK: Input: goodix: fix driver auto-loading

Until the framework properly implements a fix for this we need to
populate the i2c device id table with all known variant id to allow the
driver to properly auto-load when built as a kernel module.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Reviewed-by: Nick Saulnier <nsaulnier@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Benoit Parrot 7 years ago
parent
commit
a206c957a8
1 changed files with 7 additions and 0 deletions
  1. 7 0
      drivers/input/touchscreen/goodix.c

+ 7 - 0
drivers/input/touchscreen/goodix.c

@@ -914,6 +914,13 @@ static SIMPLE_DEV_PM_OPS(goodix_pm_ops, goodix_suspend, goodix_resume);
 
 
 static const struct i2c_device_id goodix_ts_id[] = {
 static const struct i2c_device_id goodix_ts_id[] = {
 	{ "GDIX1001:00", 0 },
 	{ "GDIX1001:00", 0 },
+	{ "gt911", 0 },
+	{ "gt9110", 0 },
+	{ "gt912", 0 },
+	{ "gt927", 0 },
+	{ "gt9271", 0 },
+	{ "gt928", 0 },
+	{ "gt967", 0 },
 	{ }
 	{ }
 };
 };
 MODULE_DEVICE_TABLE(i2c, goodix_ts_id);
 MODULE_DEVICE_TABLE(i2c, goodix_ts_id);