|
@@ -485,6 +485,14 @@ static const struct i2c_device_id ssm4567_i2c_ids[] = {
|
|
|
};
|
|
|
MODULE_DEVICE_TABLE(i2c, ssm4567_i2c_ids);
|
|
|
|
|
|
+#ifdef CONFIG_OF
|
|
|
+static const struct of_device_id ssm4567_of_match[] = {
|
|
|
+ { .compatible = "adi,ssm4567", },
|
|
|
+ { }
|
|
|
+};
|
|
|
+MODULE_DEVICE_TABLE(of, ssm4567_of_match);
|
|
|
+#endif
|
|
|
+
|
|
|
#ifdef CONFIG_ACPI
|
|
|
|
|
|
static const struct acpi_device_id ssm4567_acpi_match[] = {
|
|
@@ -498,6 +506,7 @@ MODULE_DEVICE_TABLE(acpi, ssm4567_acpi_match);
|
|
|
static struct i2c_driver ssm4567_driver = {
|
|
|
.driver = {
|
|
|
.name = "ssm4567",
|
|
|
+ .of_match_table = of_match_ptr(ssm4567_of_match),
|
|
|
.acpi_match_table = ACPI_PTR(ssm4567_acpi_match),
|
|
|
},
|
|
|
.probe = ssm4567_i2c_probe,
|