projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aa33d5
)
ASoC: codecs: Add of_match_table for aw888081 driver
author
Weidong Wang
<wangweidong.a@awinic.com>
Thu, 10 Apr 2025 02:49:53 +0000
(10:49 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 10 Apr 2025 11:24:34 +0000
(12:24 +0100)
Add of_match_table for aw88081 driver to make matching
between dts and driver more flexible
Signed-off-by: Weidong Wang <wangweidong.a@awinic.com>
Link:
https://patch.msgid.link/20250410024953.26565-1-wangweidong.a@awinic.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/aw88081.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/aw88081.c
b/sound/soc/codecs/aw88081.c
index ad16ab6812cd3fdd10d69759bff5f7caed777a66..3dd8428f08cce9d03f8debf9388a96beedaae6e3 100644
(file)
--- a/
sound/soc/codecs/aw88081.c
+++ b/
sound/soc/codecs/aw88081.c
@@
-1295,9
+1295,19
@@
static int aw88081_i2c_probe(struct i2c_client *i2c)
aw88081_dai, ARRAY_SIZE(aw88081_dai));
}
+#if defined(CONFIG_OF)
+static const struct of_device_id aw88081_of_match[] = {
+ { .compatible = "awinic,aw88081" },
+ { .compatible = "awinic,aw88083" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, aw88081_of_match);
+#endif
+
static struct i2c_driver aw88081_i2c_driver = {
.driver = {
.name = AW88081_I2C_NAME,
+ .of_match_table = of_match_ptr(aw88081_of_match),
},
.probe = aw88081_i2c_probe,
.id_table = aw88081_i2c_id,