|
@@ -652,9 +652,18 @@ static const struct i2c_device_id synaptics_i2c_id_table[] = {
|
|
|
};
|
|
|
MODULE_DEVICE_TABLE(i2c, synaptics_i2c_id_table);
|
|
|
|
|
|
+#ifdef CONFIG_OF
|
|
|
+static const struct of_device_id synaptics_i2c_of_match[] = {
|
|
|
+ { .compatible = "synaptics,synaptics_i2c", },
|
|
|
+ { },
|
|
|
+};
|
|
|
+MODULE_DEVICE_TABLE(of, synaptics_i2c_of_match);
|
|
|
+#endif
|
|
|
+
|
|
|
static struct i2c_driver synaptics_i2c_driver = {
|
|
|
.driver = {
|
|
|
.name = DRIVER_NAME,
|
|
|
+ .of_match_table = of_match_ptr(synaptics_i2c_of_match),
|
|
|
.pm = &synaptics_i2c_pm,
|
|
|
},
|
|
|
|