Date:2013-05-05 19:00:21 (10 years 10 months ago)
Author:Lars C.
Commit:fece7f4501c8fecebabd5712d28f1ae46f0ea6d8
Message:ASoC: jz4740-codec: Add device tree support

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Files: Documentation/devicetree/bindings/sound/jz4740-codec.txt (1 diff)
sound/soc/codecs/jz4740.c (1 diff)

Change Details

Documentation/devicetree/bindings/sound/jz4740-codec.txt
1Ingenic JZ4740 audio CODEC
2
3Required properties:
4    - compatible: Must be "ingenic,jz4740-codec"
5    - reg: The CODEC's registers location and length
6
7Example:
8
9    codec: codec@20080 {
10        compatible = "ingenic,jz4740-codec";
11        reg = <0x20080 0xf7f>;
12    };
sound/soc/codecs/jz4740.c
362362    return 0;
363363}
364364
365static const struct of_device_id jz4740_codec_of_match[] = {
366    { .compatible = "ingenic,jz4740-codec" },
367    {},
368};
369MODULE_DEVICE_TABLE(of, jz4740_codec_of_match);
370
365371static struct platform_driver jz4740_codec_driver = {
366372    .probe = jz4740_codec_probe,
367373    .remove = jz4740_codec_remove,
368374    .driver = {
369375        .name = "jz4740-codec",
370376        .owner = THIS_MODULE,
377        .of_match_table = jz4740_codec_of_match,
371378    },
372379};
373380

Archive Download the corresponding diff file



interactive