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)
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>

No differences found