dt-bindings: power: maxim,max17040: Fix incorrect type for 'maxim,rcomp'
authorRob Herring <robh@kernel.org>
Fri, 7 Jan 2022 03:04:33 +0000 (21:04 -0600)
committerRob Herring <robh@kernel.org>
Tue, 11 Jan 2022 17:54:35 +0000 (11:54 -0600)
The 'maxim,rcomp' is defined as a uint32, but the description and users all
say it is uint8-array with 1 or 2 elements. The tools missed checking this
case.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20220107030433.2381616-1-robh@kernel.org
Documentation/devicetree/bindings/power/supply/maxim,max17040.yaml

index ffb3449..6b4588a 100644 (file)
@@ -44,7 +44,9 @@ properties:
       SoC == State of Charge == Capacity.
 
   maxim,rcomp:
-    $ref: /schemas/types.yaml#/definitions/uint32
+    $ref: /schemas/types.yaml#/definitions/uint8-array
+    minItems: 1
+    maxItems: 2
     description: |
       A value to compensate readings for various battery chemistries and operating temperatures.
       max17040,41 have 2 byte rcomp, default to 0x97 0x00.