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:
7379907
)
ASoC: codecs: Add acpi_match_table for aw88399 driver
author
Weidong Wang
<wangweidong.a@awinic.com>
Fri, 25 Jul 2025 09:46:02 +0000
(17:46 +0800)
committer
Mark Brown
<broonie@kernel.org>
Fri, 25 Jul 2025 12:44:29 +0000
(13:44 +0100)
Add acpi_match_table to the aw88399 driver so that
it can be used on more platforms.
Signed-off-by: Weidong Wang <wangweidong.a@awinic.com>
Link:
https://patch.msgid.link/20250725094602.10017-1-wangweidong.a@awinic.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/aw88399.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/aw88399.c
b/sound/soc/codecs/aw88399.c
index bad3ad6b8c0e16e688164b21b6b87980e970e10f..c23e70d64d0c165bbc24add9b0e1d349cf1d3e1f 100644
(file)
--- a/
sound/soc/codecs/aw88399.c
+++ b/
sound/soc/codecs/aw88399.c
@@
-2330,9
+2330,18
@@
static const struct i2c_device_id aw88399_i2c_id[] = {
};
MODULE_DEVICE_TABLE(i2c, aw88399_i2c_id);
+#ifdef CONFIG_ACPI
+static const struct acpi_device_id aw88399_acpi_match[] = {
+ { "AWDZ8399", 0 },
+ { },
+};
+MODULE_DEVICE_TABLE(acpi, aw88399_acpi_match);
+#endif
+
static struct i2c_driver aw88399_i2c_driver = {
.driver = {
.name = AW88399_I2C_NAME,
+ .acpi_match_table = ACPI_PTR(aw88399_acpi_match),
},
.probe = aw88399_i2c_probe,
.id_table = aw88399_i2c_id,