]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: sun8i: a711: Change LRADC node names to avoid warnings
authorMaxime Ripard <maxime.ripard@bootlin.com>
Sat, 25 May 2019 13:40:03 +0000 (15:40 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 30 May 2019 11:37:46 +0000 (13:37 +0200)
One of the usage of the LRADC is to implement buttons. The bindings define
that we should have one subnode per button, with their associated voltage
as a property.

However, there was no reg property but we still used the voltage associated
to the button as the unit-address, which eventually generated warnings in
DTC.

Rename the node names to avoid those warnings.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts

index 66d078053d5fbbe1cba08f16a55a67fd9a46f29b..568b90ece34273c147b9a177cf6965335ebc922f 100644 (file)
@@ -224,14 +224,14 @@ &r_lradc {
        vref-supply = <&reg_aldo2>;
        status = "okay";
 
-       button@210 {
+       button-210 {
                label = "Volume Up";
                linux,code = <KEY_VOLUMEUP>;
                channel = <0>;
                voltage = <210000>;
        };
 
-       button@410 {
+       button-410 {
                label = "Volume Down";
                linux,code = <KEY_VOLUMEDOWN>;
                channel = <0>;