Skip to content

Commit 877167e

Browse files
Yu-Hsuan Hsubroonie
authored andcommitted
ASoC: cros_ec_codec: Make the device acpi compatible
Add ACPI entry for cros_ec_codec. Signed-off-by: Yu-Hsuan Hsu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ce780a4 commit 877167e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sound/soc/codecs/cros_ec_codec.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <crypto/hash.h>
1212
#include <crypto/sha.h>
13+
#include <linux/acpi.h>
1314
#include <linux/delay.h>
1415
#include <linux/device.h>
1516
#include <linux/io.h>
@@ -1047,10 +1048,17 @@ static const struct of_device_id cros_ec_codec_of_match[] = {
10471048
MODULE_DEVICE_TABLE(of, cros_ec_codec_of_match);
10481049
#endif
10491050

1051+
static const struct acpi_device_id cros_ec_codec_acpi_id[] = {
1052+
{ "GOOG0013", 0 },
1053+
{ }
1054+
};
1055+
MODULE_DEVICE_TABLE(acpi, cros_ec_codec_acpi_id);
1056+
10501057
static struct platform_driver cros_ec_codec_platform_driver = {
10511058
.driver = {
10521059
.name = "cros-ec-codec",
10531060
.of_match_table = of_match_ptr(cros_ec_codec_of_match),
1061+
.acpi_match_table = ACPI_PTR(cros_ec_codec_acpi_id),
10541062
},
10551063
.probe = cros_ec_codec_platform_probe,
10561064
};

0 commit comments

Comments
 (0)