All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: ak4554: add DT support
@ 2013-07-05  2:42 Kuninori Morimoto
  2013-07-05  9:17 ` Mark Brown
  2013-07-05  9:37 ` Lars-Peter Clausen
  0 siblings, 2 replies; 8+ messages in thread
From: Kuninori Morimoto @ 2013-07-05  2:42 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA, Simon, Liam Girdwood, Kuninori Morimoto

Support for loading the ak4554 codec module via devicetree.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
This is for mark/topic/ak4554 branch

 Documentation/devicetree/bindings/sound/ak4554.c |   11 +++++++++++
 sound/soc/codecs/ak4554.c                        |    7 +++++++
 2 files changed, 18 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/ak4554.c

diff --git a/Documentation/devicetree/bindings/sound/ak4554.c b/Documentation/devicetree/bindings/sound/ak4554.c
new file mode 100644
index 0000000..934fa02
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/ak4554.c
@@ -0,0 +1,11 @@
+AK4554 ADC/DAC
+
+Required properties:
+
+  - compatible : "asahi-kasei,ak4554"
+
+Example:
+
+ak4554-adc-dac {
+	compatible = "asahi-kasei,ak4554";
+};
diff --git a/sound/soc/codecs/ak4554.c b/sound/soc/codecs/ak4554.c
index c1a1733..6aed9c4 100644
--- a/sound/soc/codecs/ak4554.c
+++ b/sound/soc/codecs/ak4554.c
@@ -64,10 +64,17 @@ static int ak4554_soc_remove(struct platform_device *pdev)
 	return 0;
 }
 
+static struct of_device_id ak4554_of_match[] = {
+	{ .compatible = "asahi-kasei,ak4554" },
+	{},
+};
+MODULE_DEVICE_TABLE(of, ak4554_of_match);
+
 static struct platform_driver ak4554_driver = {
 	.driver = {
 		.name = "ak4554-adc-dac",
 		.owner = THIS_MODULE,
+		.of_match_table = ak4554_of_match,
 	},
 	.probe	= ak4554_soc_probe,
 	.remove	= ak4554_soc_remove,
-- 
1.7.9.5

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

end of thread, other threads:[~2013-07-08 16:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-05  2:42 [PATCH] ASoC: ak4554: add DT support Kuninori Morimoto
2013-07-05  9:17 ` Mark Brown
2013-07-05  9:37 ` Lars-Peter Clausen
2013-07-05 16:55   ` Stephen Warren
2013-07-05 17:04     ` Lars-Peter Clausen
2013-07-05 17:13       ` Stephen Warren
     [not found]         ` <51D868CF.5080105@gmail.com>
2013-07-07 17:56           ` Lars-Peter Clausen
2013-07-08 16:03             ` Stephen Warren

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.