Skip to contentSkip to conversation

dt-bindings: hwmon: ti,tmp401: Drop 'items' from 'ti,n-factor' property

PATCH Applied Rob Herring 3 participants 3 messages Jun 6, 2022 – Jun 7, 2022

Subsystems (2)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: hwmon: ti,tmp401: Drop 'items' from 'ti,n-factor' property

'ti,n-factor' is a scalar type, so 'items' should not be used as that is for arrays/matrix.

A pending meta-schema change will catch future cases.

Fixes bd90c5b93950 ("dt-bindings: hwmon: Add TMP401, TMP411 and TMP43x")
---
 Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml +2 -3
index fe0ac08faa1a..0e8ddf0ad789 100644
@@ -40,9 +40,8 @@ properties:
       value to be used for converting remote channel measurements to
       temperature.
     $ref: /schemas/types.yaml#/definitions/int32
-    items:
-      minimum: -128
-      maximum: 127
+    minimum: -128
+    maximum: 127
 
   ti,beta-compensation:
     description:
Signature · 1 line
2.34.1
maintainer Applied
#2 lore raw
In reply to Rob Herring
Quoted 8 lines · Rob Herring

'ti,n-factor' is a scalar type, so 'items' should not be used as that is for arrays/matrix.

A pending meta-schema change will catch future cases.

Fixes bd90c5b93950 ("dt-bindings: hwmon: Add TMP401, TMP411 and TMP43x")

Applied.

Thanks,
Guenter

Quoted 20 lines
---
 Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/hwmon/ti,tmp401.yaml +2 -3
index fe0ac08faa1a..0e8ddf0ad789 100644
@@ -40,9 +40,8 @@ properties:
       value to be used for converting remote channel measurements to
       temperature.
     $ref: /schemas/types.yaml#/definitions/int32
-    items:
-      minimum: -128
-      maximum: 127
+    minimum: -128
+    maximum: 127
 
   ti,beta-compensation:
     description: