Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1292938 > unrolled thread

[PATCH 2/2] ASoC: wm8974: add devicetree support

Started byMans Rullgard <mans@mansr.com>
First post2015-12-16 14:10 +0100
Last post2015-12-16 14:30 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] ASoC: wm8974: add devicetree support Mans Rullgard <mans@mansr.com> - 2015-12-16 14:10 +0100
    Re: [alsa-devel] [PATCH 2/2] ASoC: wm8974: add devicetree support Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2015-12-16 14:30 +0100
    Re: [PATCH 2/2] ASoC: wm8974: add devicetree support Mark Brown <broonie@kernel.org> - 2015-12-16 14:30 +0100

#1292938 — [PATCH 2/2] ASoC: wm8974: add devicetree support

FromMans Rullgard <mans@mansr.com>
Date2015-12-16 14:10 +0100
Subject[PATCH 2/2] ASoC: wm8974: add devicetree support
Message-ID<qGk09-2ba-3@gated-at.bofh.it>
This adds devicetree support to the wm8974 codec driver.
With a DT-based kernel, there is no board-specific setting
to select the driver so allow it to be manually chosen.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
 sound/soc/codecs/Kconfig  | 3 ++-
 sound/soc/codecs/wm8974.c | 7 +++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index cfdafc4..e36b14c 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -838,7 +838,8 @@ config SND_SOC_WM8971
 	tristate
 
 config SND_SOC_WM8974
-	tristate
+	tristate "Wolfson Microelectronics WM8974 codec"
+	depends on I2C
 
 config SND_SOC_WM8978
 	tristate "Wolfson Microelectronics WM8978 codec"
diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c
index 4c29bd2..c284c7b 100644
--- a/sound/soc/codecs/wm8974.c
+++ b/sound/soc/codecs/wm8974.c
@@ -632,9 +632,16 @@ static const struct i2c_device_id wm8974_i2c_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, wm8974_i2c_id);
 
+static const struct of_device_id wm8974_of_match[] = {
+       { .compatible = "wlf,wm8974", },
+       { }
+};
+MODULE_DEVICE_TABLE(of, wm8974_of_match);
+
 static struct i2c_driver wm8974_i2c_driver = {
 	.driver = {
 		.name = "wm8974",
+		.of_match_table = wm8974_of_match,
 	},
 	.probe =    wm8974_i2c_probe,
 	.remove =   wm8974_i2c_remove,
-- 
2.6.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1292945 — Re: [alsa-devel] [PATCH 2/2] ASoC: wm8974: add devicetree support

FromCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Date2015-12-16 14:30 +0100
SubjectRe: [alsa-devel] [PATCH 2/2] ASoC: wm8974: add devicetree support
Message-ID<qGkjv-2hR-9@gated-at.bofh.it>
In reply to#1292938
On Wed, Dec 16, 2015 at 01:02:55PM +0000, Mans Rullgard wrote:
> This adds devicetree support to the wm8974 codec driver.
> With a DT-based kernel, there is no board-specific setting
> to select the driver so allow it to be manually chosen.
> 
> Signed-off-by: Mans Rullgard <mans@mansr.com>
> ---

Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>

Thanks,
Charles
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1292948

FromMark Brown <broonie@kernel.org>
Date2015-12-16 14:30 +0100
Message-ID<qGkjw-2hR-13@gated-at.bofh.it>
In reply to#1292938

[Multipart message — attachments visible in raw view] — view raw

On Wed, Dec 16, 2015 at 01:02:55PM +0000, Mans Rullgard wrote:
> This adds devicetree support to the wm8974 codec driver.
> With a DT-based kernel, there is no board-specific setting
> to select the driver so allow it to be manually chosen.

I'm missing patch 1/1.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web