瀏覽代碼

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 年之前
父節點
當前提交
a206c957a8
共有 1 個文件被更改,包括 7 次插入0 次删除
  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[] = {
 	{ "GDIX1001:00", 0 },
+	{ "gt911", 0 },
+	{ "gt9110", 0 },
+	{ "gt912", 0 },
+	{ "gt927", 0 },
+	{ "gt9271", 0 },
+	{ "gt928", 0 },
+	{ "gt967", 0 },
 	{ }
 };
 MODULE_DEVICE_TABLE(i2c, goodix_ts_id);