dt-bindings: w1-gpio: Drop redundant 'maxItems'
authorRob Herring <robh@kernel.org>
Tue, 28 Sep 2021 21:54:07 +0000 (16:54 -0500)
committerRob Herring <robh@kernel.org>
Mon, 4 Oct 2021 18:11:22 +0000 (13:11 -0500)
Drop another redundant maxItems that snuck into w1-gpio binding.

If a property has an 'items' list, then a 'minItems' or 'maxItems' with the
same size as the list is redundant and can be dropped. Note that is DT
schema specific behavior and not standard json-schema behavior. The tooling
will fixup the final schema adding any unspecified minItems/maxItems.

Fixes: dd2c898bc20b ("dt-bindings: w1: Convert 1-Wire GPIO binding to a schema")
Cc: Daniel Mack <zonque@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/w1/w1-gpio.yaml

index 7ba1c2f..8eef238 100644 (file)
@@ -15,7 +15,6 @@ properties:
 
   gpios:
     minItems: 1
-    maxItems: 2
     items:
       - description: Data I/O pin
       - description: Enable pin for an external pull-up resistor