[PATCH 07/10] ASoC: phycore-ac97: Add DT support
Mark Brown
broonie at opensource.wolfsonmicro.com
Tue Mar 12 14:59:22 EDT 2013
On Sun, Mar 10, 2013 at 07:33:08PM +0100, Markus Pargmann wrote:
> Add devicetree support for this audio soc fabric driver.
>
> Signed-off-by: Markus Pargmann <mpa at pengutronix.de>
> ---
> sound/soc/fsl/phycore-ac97.c | 148 ++++++++++++++++++++++++++++++++++++-------
> 1 file changed, 125 insertions(+), 23 deletions(-)
A binding document is mandatory for new bindings.
> +#ifdef CONFIG_MACH_IMX27_DT
> + .cpu_dai_name = "10010000.ssi",
> + .platform_name = "imx-fiq-pcm-audio",
> +#else
This looks wrong, at least the CPU DAI name should be being looked up
via the DT.
> +static const struct of_device_id imx_phycore_ac97_of_dev_id[] = {
> + {
> + .compatible = "phytec,imx27-pca100-ac97",
> + .data = (void *)MX27_PCA100,
> + }, {
> + .compatible = "phytec,imx27-pcm043-ac97",
> + .data = (void *)MX27_PCM043
> + }, {
> + /* sentinel */
> + }
> +};
> +MODULE_DEVICE_TABLE(of, imx_phycore_ac97_of_dev_id);
It seems like we ought to be able to describe the properties of the
boards in this class rather than just enumerating the boards. What are
the differences?
> MODULE_AUTHOR("Sascha Hauer <s.hauer at pengutronix.de>");
> -MODULE_DESCRIPTION("PhyCORE ALSA SoC driver");
> +MODULE_DESCRIPTION(DRV_NAME ": PhyCORE ALSA SoC fabric driver");
Please don't make up terms like "fabric driver".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130312/a164cce8/attachment.sig>
More information about the linux-arm-kernel
mailing list