diff options
author | Oder Chiou <oder_chiou@realtek.com> | 2019-03-28 10:27:00 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-01 15:04:04 +0700 |
commit | 2b070f6739025ecbf2ccb55daf9e19d3fb343c7e (patch) | |
tree | 0d30137e310f8656a9c6b83574c712bff16fa5a6 /sound/soc/codecs/rt5677-spi.c | |
parent | ad6bb3067c4d7c684488eb9f8f8a32f623b12af3 (diff) | |
download | lwn-2b070f6739025ecbf2ccb55daf9e19d3fb343c7e.tar.gz lwn-2b070f6739025ecbf2ccb55daf9e19d3fb343c7e.zip |
ASoC: rt5677-spi: Add ACPI ID
Add the ACPI ID for the product "chromebook pixel 2015" to match the
coreboot settings.
Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5677-spi.c')
-rw-r--r-- | sound/soc/codecs/rt5677-spi.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5677-spi.c b/sound/soc/codecs/rt5677-spi.c index 84501c2020c7..167a02773a0b 100644 --- a/sound/soc/codecs/rt5677-spi.c +++ b/sound/soc/codecs/rt5677-spi.c @@ -25,6 +25,7 @@ #include <linux/sysfs.h> #include <linux/clk.h> #include <linux/firmware.h> +#include <linux/acpi.h> #include "rt5677-spi.h" @@ -226,9 +227,16 @@ static int rt5677_spi_probe(struct spi_device *spi) return 0; } +static const struct acpi_device_id rt5677_spi_acpi_id[] = { + { "RT5677AA", 0 }, + { } +}; +MODULE_DEVICE_TABLE(acpi, rt5677_spi_acpi_id); + static struct spi_driver rt5677_spi_driver = { .driver = { .name = "rt5677", + .acpi_match_table = ACPI_PTR(rt5677_spi_acpi_id), }, .probe = rt5677_spi_probe, }; |