Skip to content

Commit e95122a

Browse files
wangweidongabroonie
authored andcommitted
ASoC: codecs: Add acpi_match_table for aw88399 driver
Add acpi_match_table to the aw88399 driver so that it can be used on more platforms. Signed-off-by: Weidong Wang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 7379907 commit e95122a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sound/soc/codecs/aw88399.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,9 +2330,18 @@ static const struct i2c_device_id aw88399_i2c_id[] = {
23302330
};
23312331
MODULE_DEVICE_TABLE(i2c, aw88399_i2c_id);
23322332

2333+
#ifdef CONFIG_ACPI
2334+
static const struct acpi_device_id aw88399_acpi_match[] = {
2335+
{ "AWDZ8399", 0 },
2336+
{ },
2337+
};
2338+
MODULE_DEVICE_TABLE(acpi, aw88399_acpi_match);
2339+
#endif
2340+
23332341
static struct i2c_driver aw88399_i2c_driver = {
23342342
.driver = {
23352343
.name = AW88399_I2C_NAME,
2344+
.acpi_match_table = ACPI_PTR(aw88399_acpi_match),
23362345
},
23372346
.probe = aw88399_i2c_probe,
23382347
.id_table = aw88399_i2c_id,

0 commit comments

Comments
 (0)