diff mbox series

[2/2] dt-bindings: hwmon: ti,ina2xx: use common hwmon schema

Message ID 20240216-dt-bindings-hwmon-common-v1-2-3c2c24ff1260@linaro.org (mailing list archive)
State Handled Elsewhere
Headers show
Series dt-bindings: hwmon: common schema | expand

Commit Message

Krzysztof Kozlowski Feb. 16, 2024, 7:55 a.m. UTC
Reference common hwmon schema which brings the "label" property.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Guenter Roeck Feb. 16, 2024, 5:12 p.m. UTC | #1
On 2/15/24 23:55, Krzysztof Kozlowski wrote:
> Reference common hwmon schema which brings the "label" property.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Acked-by: Guenter Roeck <linux@roeck-us.net>

> ---
>   Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
> index a099bb71415e..df86c2c92037 100644
> --- a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
> @@ -36,9 +36,6 @@ properties:
>     "#io-channel-cells":
>       const: 1
>   
> -  label:
> -    description: A descriptive name for this device.
> -
>     shunt-resistor:
>       description:
>         Shunt resistor value in micro-Ohm.
> @@ -73,7 +70,10 @@ required:
>     - compatible
>     - reg
>   
> -additionalProperties: false
> +allOf:
> +  - $ref: hwmon-common.yaml#
> +
> +unevaluatedProperties: false
>   
>   examples:
>     - |
>
Rob Herring Feb. 22, 2024, 7:53 p.m. UTC | #2
On Fri, 16 Feb 2024 08:55:47 +0100, Krzysztof Kozlowski wrote:
> Reference common hwmon schema which brings the "label" property.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 

Acked-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
index a099bb71415e..df86c2c92037 100644
--- a/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
+++ b/Documentation/devicetree/bindings/hwmon/ti,ina2xx.yaml
@@ -36,9 +36,6 @@  properties:
   "#io-channel-cells":
     const: 1
 
-  label:
-    description: A descriptive name for this device.
-
   shunt-resistor:
     description:
       Shunt resistor value in micro-Ohm.
@@ -73,7 +70,10 @@  required:
   - compatible
   - reg
 
-additionalProperties: false
+allOf:
+  - $ref: hwmon-common.yaml#
+
+unevaluatedProperties: false
 
 examples:
   - |