aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/hwmon
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2022-04-13 08:47:29 -0500
committerGuenter Roeck <linux@roeck-us.net>2022-04-13 07:12:24 -0700
commit4d0d5c352303a318925ceb84a86818761aa6586b (patch)
treeecf8ddcb07ab49a9a1d3209e81a083bcd148c504 /Documentation/devicetree/bindings/hwmon
parenthwmon: (adt7470) Fix warning on module removal (diff)
downloadlinux-dev-4d0d5c352303a318925ceb84a86818761aa6586b.tar.xz
linux-dev-4d0d5c352303a318925ceb84a86818761aa6586b.zip
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>
Diffstat (limited to 'Documentation/devicetree/bindings/hwmon')
-rw-r--r--Documentation/devicetree/bindings/hwmon/ti,tmp421.yaml7
1 files changed, 3 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp421.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp421.yaml
index 36f649938fb7..a6f1fa75a67c 100644
--- a/Documentation/devicetree/bindings/hwmon/ti,tmp421.yaml
+++ b/Documentation/devicetree/bindings/hwmon/ti,tmp421.yaml
@@ -58,10 +58,9 @@ patternProperties:
description: |
The value (two's complement) to be programmed in the channel specific N correction register.
For remote channels only.
- $ref: /schemas/types.yaml#/definitions/uint32
- items:
- minimum: 0
- maximum: 255
+ $ref: /schemas/types.yaml#/definitions/int32
+ minimum: -128
+ maximum: 127
required:
- reg