Skip to content

Commit 4d0d5c3

Browse files
robherringgroeck
authored andcommitted
dt-bindings: hwmon: ti,tmp421: Fix type for 'ti,n-factor'
'ti,n-factor' is read as a 32-bit signed value, so the type and constraints are wrong. The same property is also defined for ti,tmp464 and is correct. The constraints should also not be under 'items' as this property is not an array. Cc: Jean Delvare <jdelvare@suse.com> Cc: Guenter Roeck <linux@roeck-us.net> Cc: Krzysztof Kozlowski <krzk+dt@kernel.org> Cc: linux-hwmon@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20220413134729.3112190-1-robh@kernel.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 7b2666c commit 4d0d5c3

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Documentation/devicetree/bindings/hwmon/ti,tmp421.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ patternProperties:
5858
description: |
5959
The value (two's complement) to be programmed in the channel specific N correction register.
6060
For remote channels only.
61-
$ref: /schemas/types.yaml#/definitions/uint32
62-
items:
63-
minimum: 0
64-
maximum: 255
61+
$ref: /schemas/types.yaml#/definitions/int32
62+
minimum: -128
63+
maximum: 127
6564

6665
required:
6766
- reg

0 commit comments

Comments
 (0)