All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: cros_ec_codec: Make the device acpi compatible
@ 2020-01-12  5:49 ` Yu-Hsuan Hsu
  0 siblings, 0 replies; 4+ messages in thread
From: Yu-Hsuan Hsu @ 2020-01-12  5:49 UTC (permalink / raw)
  To: linux-kernel
  Cc: Cheng-Yi Chiang, Enric Balletbo i Serra, Guenter Roeck,
	Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Benson Leung, alsa-devel, Tzung-Bi Shih, Yu-Hsuan Hsu,
	Akshu Agrawal

Add ACPI entry for cros_ec_codec.

Signed-off-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
---
 sound/soc/codecs/cros_ec_codec.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sound/soc/codecs/cros_ec_codec.c b/sound/soc/codecs/cros_ec_codec.c
index c81bbef2367a0f..6a24f570c5e86f 100644
--- a/sound/soc/codecs/cros_ec_codec.c
+++ b/sound/soc/codecs/cros_ec_codec.c
@@ -10,6 +10,7 @@
 
 #include <crypto/hash.h>
 #include <crypto/sha.h>
+#include <linux/acpi.h>
 #include <linux/delay.h>
 #include <linux/device.h>
 #include <linux/io.h>
@@ -1047,10 +1048,17 @@ static const struct of_device_id cros_ec_codec_of_match[] = {
 MODULE_DEVICE_TABLE(of, cros_ec_codec_of_match);
 #endif
 
+static const struct acpi_device_id cros_ec_codec_acpi_id[] = {
+	{ "GOOG0013", 0 },
+	{ }
+};
+MODULE_DEVICE_TABLE(acpi, cros_ec_codec_acpi_id);
+
 static struct platform_driver cros_ec_codec_platform_driver = {
 	.driver = {
 		.name = "cros-ec-codec",
 		.of_match_table = of_match_ptr(cros_ec_codec_of_match),
+		.acpi_match_table = ACPI_PTR(cros_ec_codec_acpi_id),
 	},
 	.probe = cros_ec_codec_platform_probe,
 };
-- 
2.25.0.rc1.283.g88dfdc4193-goog


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-14 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-12  5:49 [PATCH] ASoC: cros_ec_codec: Make the device acpi compatible Yu-Hsuan Hsu
2020-01-12  5:49 ` [alsa-devel] " Yu-Hsuan Hsu
2020-01-13 15:13 ` Applied "ASoC: cros_ec_codec: Make the device acpi compatible" to the asoc tree Mark Brown
2020-01-13 15:13   ` [alsa-devel] " Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.