Skip to content

Commit f19638b

Browse files
committed
dt-bindings: power: maxim,max17040: Fix incorrect type for 'maxim,rcomp'
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 <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e3a3356 commit f19638b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/devicetree/bindings/power/supply/maxim,max17040.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ properties:
4444
SoC == State of Charge == Capacity.
4545
4646
maxim,rcomp:
47-
$ref: /schemas/types.yaml#/definitions/uint32
47+
$ref: /schemas/types.yaml#/definitions/uint8-array
48+
minItems: 1
49+
maxItems: 2
4850
description: |
4951
A value to compensate readings for various battery chemistries and operating temperatures.
5052
max17040,41 have 2 byte rcomp, default to 0x97 0x00.

0 commit comments

Comments
 (0)