]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: ak5386: Add regulators to documentation and fix sparse warning
authorDaniel Mack <zonque@gmail.com>
Fri, 28 Mar 2014 18:05:04 +0000 (19:05 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 18 Jun 2014 17:52:52 +0000 (18:52 +0100)
Document the newly added regulators to the DT binding document.

Also, "static const char const *x" is not identical to "static const
char * const x", which sparse now complains about. Fix it.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/sound/ak5386.txt
sound/soc/codecs/ak5386.c

index dc3914fe6ce8b423fe8f220eb98bad0d3a21348a..ec3df3abba0cf06dec5252b8564a35c1efd7aa0a 100644 (file)
@@ -10,10 +10,14 @@ Optional properties:
 
   - reset-gpio : a GPIO spec for the reset/power down pin.
                 If specified, it will be deasserted at probe time.
+  - va-supply : a regulator spec, providing 5.0V
+  - vd-supply : a regulator spec, providing 3.3V
 
 Example:
 
 spdif: ak5386@0 {
        compatible = "asahi-kasei,ak5386";
        reset-gpio = <&gpio0 23>;
+       va-supply = <&vdd_5v0_reg>;
+       vd-supply = <&vdd_3v3_reg>;
 };
index a30be5ce3fa42b6ceb6c8ba854f4e9b1d65034c8..8107a1cac8764bf8e81ce391ec212a8e72aa0299 100644 (file)
@@ -19,7 +19,7 @@
 #include <sound/pcm.h>
 #include <sound/initval.h>
 
-static const char const *supply_names[] = {
+static const char * const supply_names[] = {
        "va", "vd"
 };