Commit 96145459 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Andy Shevchenko
Browse files

dt-bindings: auxdisplay: adjust example indentation and use generic node names



The example DTS should be indented with two or four (preferred) spaces,
as mentioned in Writing Schema document.  While re-indenting, change the
node names to somehow generic names, as expected by Devicetree
specification.

Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Ralf Schlatterbeck <rsc@runtux.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 933feb12
Loading
Loading
Loading
Loading
+35 −33
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ additionalProperties: false
examples:
  - |
    #include <dt-bindings/gpio/gpio.h>
    auxdisplay {
    display-controller {
        compatible = "hit,hd44780";

        data-gpios = <&hc595 0 GPIO_ACTIVE_HIGH>,
@@ -97,20 +97,22 @@ examples:
        display-height-chars = <2>;
        display-width-chars = <16>;
    };

  - |
    #include <dt-bindings/gpio/gpio.h>
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

            pcf8574: pcf8574@27 {
        pcf8574: gpio-expander@27 {
            compatible = "nxp,pcf8574";
            reg = <0x27>;
            gpio-controller;
            #gpio-cells = <2>;
        };
    };
    hd44780 {

    display-controller {
        compatible = "hit,hd44780";
        display-height-chars = <2>;
        display-width-chars = <16>;
+27 −27
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ examples:
        #address-cells = <1>;
        #size-cells = <0>;

            ht16k33: ht16k33@70 {
        display-controller@70 {
            compatible = "holtek,ht16k33";
            reg = <0x70>;
            refresh-rate-hz = <20>;
+2 −2

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.