mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
dt-bindings: power: supply: max17042: Allow generic power-supply properties
The MAX17042 family binding references the generic power-supply schema, but additionalProperties only recognizes properties declared directly by this schema. Use unevaluatedProperties so generic properties such as monitored-battery are accepted while unknown properties remain rejected. Remove the local power-supplies declaration because it is already inherited from power-supply.yaml. Assisted-by: OpenCode:gpt-5.6-sol Signed-off-by: Vincent Cloutier <vincent@cloutier.co> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://patch.msgid.link/20260727011319.621794-12-vincent.cloutier@icloud.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
6a376b843d
commit
c84ccde22d
|
|
@ -67,13 +67,11 @@ properties:
|
|||
Voltage threshold to report battery as over voltage (in mV).
|
||||
Default is not to report over-voltage events.
|
||||
|
||||
power-supplies: true
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
additionalProperties: false
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user