ASoC: rt5640: add device tree support
authorStephen Warren <swarren@nvidia.com>
Wed, 12 Jun 2013 17:34:30 +0000 (11:34 -0600)
committerMark Brown <broonie@linaro.org>
Wed, 12 Jun 2013 18:25:22 +0000 (19:25 +0100)
commitdcad9f031240d59e9e1475a8e5b2cb427da94f6e
tree5bb28075e74375030c5fd2e89531f01660700047
parent997b05203b0a710e11f9b2732bef2d2fdc1d824b
ASoC: rt5640: add device tree support

Modify the RT5640 driver to parse platform data from device tree. Write
a DT binding document to describe those properties.

Slight re-ordering of rt5640_i2c_probe() to better fit the DT parsing.

Since ldo1_en is optional, guard usage of it with gpio_is_valid(), rather
than open-coding an if (gpio) check.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/sound/rt5640.txt [new file with mode: 0644]
sound/soc/codecs/rt5640.c