How to add comments to device tree source files

How to place multi-line or single lines in the source files of the device tree. I could not find him anywhere. Is the default comment method used?

+4
source share
2 answers

Is the default comment method c used?

Yes, use /* comment */.

+8
source

Here is what the devicetree documentation says:

The source file format is .dts "C", as it supports C and C ++ style comments.

So you can use both

/* multiline (C style)
   comments */

and

// single line (C++ style) comments,

although the latter is for some reason usually not used.

+4
source

Source: https://habr.com/ru/post/1527642/


All Articles