mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 05:27:07 +02:00
dt-bindings: mfd: samsung,s5m8767: Simplify excluding properties
Mutually exclusive s5m8767,pmic-buck[234]-uses-gpio-dvs properties can be written simpler, with half of the lines of code. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20230619101424.25897-1-krzysztof.kozlowski@linaro.org Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
104d32bd81
commit
7c8cb341fd
|
|
@ -153,29 +153,18 @@ dependencies:
|
|||
additionalProperties: false
|
||||
|
||||
allOf:
|
||||
- if:
|
||||
- not:
|
||||
required:
|
||||
- s5m8767,pmic-buck2-uses-gpio-dvs
|
||||
then:
|
||||
properties:
|
||||
s5m8767,pmic-buck3-uses-gpio-dvs: false
|
||||
s5m8767,pmic-buck4-uses-gpio-dvs: false
|
||||
|
||||
- if:
|
||||
- s5m8767,pmic-buck3-uses-gpio-dvs
|
||||
- not:
|
||||
required:
|
||||
- s5m8767,pmic-buck2-uses-gpio-dvs
|
||||
- s5m8767,pmic-buck4-uses-gpio-dvs
|
||||
- not:
|
||||
required:
|
||||
- s5m8767,pmic-buck3-uses-gpio-dvs
|
||||
then:
|
||||
properties:
|
||||
s5m8767,pmic-buck2-uses-gpio-dvs: false
|
||||
s5m8767,pmic-buck4-uses-gpio-dvs: false
|
||||
|
||||
- if:
|
||||
required:
|
||||
- s5m8767,pmic-buck4-uses-gpio-dvs
|
||||
then:
|
||||
properties:
|
||||
s5m8767,pmic-buck2-uses-gpio-dvs: false
|
||||
s5m8767,pmic-buck3-uses-gpio-dvs: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user