Commit da32b6d7 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Sebastian Reichel
Browse files

dt-bindings: power: supply: Drop redundant monitored-battery ref



Bindings reference the common power supply schema, which already defines
the type (ref) for "monitored-battery" property.  Drop the redundant ref
from individual device schemas along with obvious description also
duplicating what is in power-supply.yaml.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250604-dt-bindings-psy-monitored-battery-v1-6-7f755ff75218@linaro.org


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 128c0704
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -48,7 +48,6 @@ properties:
      battery device.

  monitored-battery:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: |
      phandle to a "simple-battery" compatible node.

+1 −3
Original line number Diff line number Diff line
@@ -73,9 +73,7 @@ properties:
    description: |
      Indicates that the device state has changed.

  monitored-battery:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: phandle to the battery node being monitored
  monitored-battery: true

required:
  - compatible
+1 −4
Original line number Diff line number Diff line
@@ -43,10 +43,7 @@ properties:
    minItems: 1
    maxItems: 8 # Should be enough

  monitored-battery:
    description:
      Specifies the phandle of a simple-battery connected to this gauge
    $ref: /schemas/types.yaml#/definitions/phandle
  monitored-battery: true

required:
  - compatible
+1 −3
Original line number Diff line number Diff line
@@ -17,9 +17,7 @@ properties:
  compatible:
    const: stericsson,ab8500-btemp

  monitored-battery:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: phandle to battery node
  monitored-battery: true

  battery:
    $ref: /schemas/types.yaml#/definitions/phandle
+1 −3
Original line number Diff line number Diff line
@@ -17,9 +17,7 @@ properties:
  compatible:
    const: stericsson,ab8500-chargalg

  monitored-battery:
    $ref: /schemas/types.yaml#/definitions/phandle
    description: phandle to battery node
  monitored-battery: true

  battery:
    $ref: /schemas/types.yaml#/definitions/phandle
Loading