diff options
author | Fang, Yang A <yang.a.fang@intel.com> | 2015-10-08 00:33:57 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-10-08 16:38:42 +0300 |
commit | b3681308cc7162fb08249589b5bb1b2d42e00f4b (patch) | |
tree | e695ab6cae5580482f267ee5b97df511245be3a4 /sound/soc/codecs/nau8825.c | |
parent | cc91ef0fd4904fc130aecea8603585a9c0fe8384 (diff) | |
download | linux-b3681308cc7162fb08249589b5bb1b2d42e00f4b.tar.xz |
ASoC: nau8825: add acpi match ID
This patch adds the acpi match ID for nau8825 codec
Signed-off-by: Fang, Yang A <yang.a.fang@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/nau8825.c')
-rw-r--r-- | sound/soc/codecs/nau8825.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/codecs/nau8825.c b/sound/soc/codecs/nau8825.c index c44a7a16b046..5c1badf47ac9 100644 --- a/sound/soc/codecs/nau8825.c +++ b/sound/soc/codecs/nau8825.c @@ -16,6 +16,7 @@ #include <linux/regmap.h> #include <linux/slab.h> #include <linux/clk.h> +#include <linux/acpi.h> #include <sound/initval.h> #include <sound/tlv.h> @@ -1090,10 +1091,19 @@ static const struct of_device_id nau8825_of_ids[] = { MODULE_DEVICE_TABLE(of, nau8825_of_ids); #endif +#ifdef CONFIG_ACPI +static const struct acpi_device_id nau8825_acpi_match[] = { + { "10508825", 0 }, + {}, +}; +MODULE_DEVICE_TABLE(acpi, nau8825_acpi_match); +#endif + static struct i2c_driver nau8825_driver = { .driver = { .name = "nau8825", .of_match_table = of_match_ptr(nau8825_of_ids), + .acpi_match_table = ACPI_PTR(nau8825_acpi_match), }, .probe = nau8825_i2c_probe, .remove = nau8825_i2c_remove, |