lkml.org 
[lkml]   [2022]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] docs: dt: writing-schema: mention coding style
On Sun, 03 Apr 2022 10:18:49 +0200, Krzysztof Kozlowski wrote:
> Mention the usage of YAML coding style. Describe explicitly that
> four-space indentation in DTS examples is preferred, because:
> 1. The YAML's default two-space indentation for DTS code makes it
> significantly less readable.
> 2. Linux coding style tabs would introduce inconsistency (entire file is
> indented with spaces).
> 3. On the other hand, eight spaces would not align with example's
> opening ' - |' part. Four spaces makes the code nicely aligned with
> it.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../devicetree/bindings/example-schema.yaml | 14 +++++++-------
> .../devicetree/bindings/writing-schema.rst | 6 ++++++
> 2 files changed, 13 insertions(+), 7 deletions(-)
>

Applied, thanks!

\
 
 \ /
  Last update: 2022-04-05 01:12    [W:0.045 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site