Date:2013-05-05 19:00:21 (10 years 10 months ago)
Author:Lars C.
Commit:401731ba52dce677a4b67e3426483517ff6bb65f
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
390390    return 0;
391391}
392392
393static const struct of_device_id jz4740_codec_of_match[] = {
394    { .compatible = "ingenic,jz4740-codec" },
395    {},
396};
397MODULE_DEVICE_TABLE(of, jz4740_codec_of_match);
398
393399static struct platform_driver jz4740_codec_driver = {
394400    .probe = jz4740_codec_probe,
395401    .remove = jz4740_codec_remove,
396402    .driver = {
397403        .name = "jz4740-codec",
398404        .owner = THIS_MODULE,
405        .of_match_table = jz4740_codec_of_match,
399406    },
400407};
401408

Archive Download the corresponding diff file



interactive