]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
dt-bindings: hwmon: adi,adm1275: use common hwmon schema
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 24 Feb 2024 10:14:52 +0000 (11:14 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 25 Feb 2024 20:37:46 +0000 (12:37 -0800)
Reference common hwmon schema which allows to drop the
"shunt-resistor-micro-ohms" property.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240224-dt-bindings-hwmon-common-v2-3-b446eecf5480@linaro.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/devicetree/bindings/hwmon/adi,adm1275.yaml

index ab87f51c5aefe8ecc8ce51dbe28e661b4eee0971..b680612949642fb9c56bb9d08fea3f9e205315eb 100644 (file)
@@ -33,10 +33,6 @@ properties:
   reg:
     maxItems: 1
 
-  shunt-resistor-micro-ohms:
-    description:
-      Shunt resistor value in micro-Ohm.
-
   adi,volt-curr-sample-average:
     description: |
       Number of samples to be used to report voltage and current values.
@@ -50,6 +46,7 @@ properties:
     enum: [1, 2, 4, 8, 16, 32, 64, 128]
 
 allOf:
+  - $ref: hwmon-common.yaml#
   - if:
       properties:
         compatible:
@@ -107,7 +104,7 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |