We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aa33d5 commit 6bbb2b1Copy full SHA for 6bbb2b1
sound/soc/codecs/aw88081.c
@@ -1295,9 +1295,19 @@ static int aw88081_i2c_probe(struct i2c_client *i2c)
1295
aw88081_dai, ARRAY_SIZE(aw88081_dai));
1296
}
1297
1298
+#if defined(CONFIG_OF)
1299
+static const struct of_device_id aw88081_of_match[] = {
1300
+ { .compatible = "awinic,aw88081" },
1301
+ { .compatible = "awinic,aw88083" },
1302
+ { }
1303
+};
1304
+MODULE_DEVICE_TABLE(of, aw88081_of_match);
1305
+#endif
1306
+
1307
static struct i2c_driver aw88081_i2c_driver = {
1308
.driver = {
1309
.name = AW88081_I2C_NAME,
1310
+ .of_match_table = of_match_ptr(aw88081_of_match),
1311
},
1312
.probe = aw88081_i2c_probe,
1313
.id_table = aw88081_i2c_id,
0 commit comments