projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9b0d88
)
ASoC: wm8961: add support for devicetree
author
Doug Brown
<doug@schmorgal.com>
Mon, 3 Oct 2022 03:24:13 +0000
(20:24 -0700)
committer
Mark Brown
<broonie@kernel.org>
Mon, 17 Oct 2022 11:47:42 +0000
(12:47 +0100)
Add support for devicetree to the WM8961 driver so it can be used with
modern DT-based kernels.
Signed-off-by: Doug Brown <doug@schmorgal.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link:
https://lore.kernel.org/r/20221003032414.248326-3-doug@schmorgal.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8961.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wm8961.c
b/sound/soc/codecs/wm8961.c
index 7dc6aaf65576792df5990e9f2bd12f9547a3ea6e..a4857024711d43d49cb07a7f32ce173794111b27 100644
(file)
--- a/
sound/soc/codecs/wm8961.c
+++ b/
sound/soc/codecs/wm8961.c
@@
-971,9
+971,16
@@
static const struct i2c_device_id wm8961_i2c_id[] = {
};
MODULE_DEVICE_TABLE(i2c, wm8961_i2c_id);
+static const struct of_device_id wm8961_of_match[] __maybe_unused = {
+ { .compatible = "wlf,wm8961", },
+ { }
+};
+MODULE_DEVICE_TABLE(of, wm8961_of_match);
+
static struct i2c_driver wm8961_i2c_driver = {
.driver = {
.name = "wm8961",
+ .of_match_table = of_match_ptr(wm8961_of_match),
},
.probe_new = wm8961_i2c_probe,
.id_table = wm8961_i2c_id,