summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorSeven Lee <wtli@nuvoton.com>2020-05-28 10:05:10 +0300
committerMark Brown <broonie@kernel.org>2020-05-28 15:20:18 +0300
commit2b1878afc8fb778a881e9a1d7d17b14e13f579dc (patch)
tree2cb5d7336deea28e3392967ec5bcdbbdda1e20ea /sound
parente6825bae26812e981c4d6f93214f0259ca9a4977 (diff)
downloadlinux-2b1878afc8fb778a881e9a1d7d17b14e13f579dc.tar.xz
ASoC: nau8810: add I2C device and compatible ID
The nau8810 driver can also compatible with nau8812 and nau8814. Signed-off-by: Seven Lee <wtli@nuvoton.com> Link: https://lore.kernel.org/r/20200528070510.29959-1-wtli@nuvoton.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/nau8810.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/nau8810.c b/sound/soc/codecs/nau8810.c
index efe9fb3fb225..33ebc6398426 100644
--- a/sound/soc/codecs/nau8810.c
+++ b/sound/soc/codecs/nau8810.c
@@ -895,6 +895,8 @@ static int nau8810_i2c_probe(struct i2c_client *i2c,
static const struct i2c_device_id nau8810_i2c_id[] = {
{ "nau8810", 0 },
+ { "nau8812", 0 },
+ { "nau8814", 0 },
{ }
};
MODULE_DEVICE_TABLE(i2c, nau8810_i2c_id);
@@ -902,6 +904,8 @@ MODULE_DEVICE_TABLE(i2c, nau8810_i2c_id);
#ifdef CONFIG_OF
static const struct of_device_id nau8810_of_match[] = {
{ .compatible = "nuvoton,nau8810", },
+ { .compatible = "nuvoton,nau8812", },
+ { .compatible = "nuvoton,nau8814", },
{ }
};
MODULE_DEVICE_TABLE(of, nau8810_of_match);