Skip to contentSkip to conversation

dt-bindings: power: supply: charger-manager: Add missing type for 'cm-battery-stat'

PATCH Applied Rob Herring 1 participant 2 messages Jul 19, 2022 – Jul 27, 2022

Subsystems (2)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: power: supply: charger-manager: Add missing type for 'cm-battery-stat'

'cm-battery-stat' is missing a type definition and is not a common property. The type is boolean.

---
 .../devicetree/bindings/power/supply/charger-manager.yaml        | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/power/supply/charger-manager.yaml +1 -0
index fbb2204769aa..5af1e0beaf29 100644
@@ -50,6 +50,7 @@ properties:
 
   cm-battery-stat:
     description: battery status
+    $ref: /schemas/types.yaml#/definitions/uint32
     enum:
       - 0 # battery always present
       - 1 # no battery
Signature · 1 line
2.34.1
author maintainer Applied
#1 lore raw
Quoted 8 lines · Rob Herring

'cm-battery-stat' is missing a type definition and is not a common property. The type is boolean.

---
 .../devicetree/bindings/power/supply/charger-manager.yaml        | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks!