diff mbox series

[1/2] dt-bindings: power: supply: bq256xx: Add omit-battery-class property

Message ID 20240907-bq256xx-omit-battery-class-v1-1-45f6d8dbd1e5@mainlining.org
State New
Headers show
Series Add omit-battery-class property for bq256xxx | expand

Commit Message

Barnabás Czémán Sept. 7, 2024, 11:07 a.m. UTC
Add omit-battery-class property for avoid system create a battery device.

Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
---
 Documentation/devicetree/bindings/power/supply/bq256xx.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Krzysztof Kozlowski Sept. 8, 2024, 8:47 a.m. UTC | #1
On Sat, Sep 07, 2024 at 01:07:45PM +0200, Barnabás Czémán wrote:
> Add omit-battery-class property for avoid system create a battery device.
> 
> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>

Please run scripts/checkpatch.pl and fix reported warnings. Then please
run  and (probably) fix more warnings.
Some warnings can be ignored, especially from --strict run, but the code
here looks like it needs a fix. Feel free to get in touch if the warning
is not clear.

Your SoB does not match.

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml
index a76afe3ca299..744f5782e8e7 100644
--- a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml
+++ b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml
@@ -62,6 +62,12 @@  properties:
     $ref: /schemas/types.yaml#/definitions/phandle
     description: phandle to the battery node being monitored
 
+  omit-battery-class:
+    type: boolean
+    description: |
+      If this property is set, the operating system does not try to create a
+      battery device.
+
   interrupts:
     maxItems: 1
     description: |