[PATCH] Add note about the initial character in a compatible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Commit 05a34819e5 ("Add more restrictions on compatible strings")
started to add recommendations on the contents of compatible strings.

Add an additional recommendation that compatibles should start with a
letter. In particular, this matches what dt-schema is doing.

Signed-off-by: Martí Bolívar <marti.bolivar@xxxxxxxxxxxxx>
---
 source/chapter2-devicetree-basics.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/source/chapter2-devicetree-basics.rst b/source/chapter2-devicetree-basics.rst
index fa39625..40be221 100644
--- a/source/chapter2-devicetree-basics.rst
+++ b/source/chapter2-devicetree-basics.rst
@@ -484,9 +484,9 @@ Description:
    (such as a stock ticker symbol), and ``model`` specifies the model
    number.
 
-   The compatible string should consist only of lowercase letters, digits
-   and dashes. A single comma is typically only used following a vendor
-   prefix. Underscores should not be used.
+   The compatible string should consist only of lowercase letters, digits and
+   dashes, and should start with a letter. A single comma is typically only
+   used following a vendor prefix. Underscores should not be used.
 
 Example:
 
-- 
2.31.1




[Index of Archives]     [Device Tree]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Photos]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]

  Powered by Linux