summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-06-19 12:14:24 +0200
committerLee Jones <lee@kernel.org>2023-06-21 18:55:50 +0100
commit7c8cb341fd6667bf2a3dc19c801500af2c92f3f0 (patch)
tree78b49ba3dc3a2de202592d94344184616bb23945 /Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml
parent104d32bd81f620bb9f67fbf7d1159c414e89f05f (diff)
downloadlinux-stable-7c8cb341fd6667bf2a3dc19c801500af2c92f3f0.tar.gz
linux-stable-7c8cb341fd6667bf2a3dc19c801500af2c92f3f0.tar.bz2
linux-stable-7c8cb341fd6667bf2a3dc19c801500af2c92f3f0.zip
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>
Diffstat (limited to 'Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml')
-rw-r--r--Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml25
1 files changed, 7 insertions, 18 deletions
diff --git a/Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml b/Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml
index 10c7b408f33a..aea0b7d57d04 100644
--- a/Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml
+++ b/Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml
@@ -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:
- required:
- s5m8767,pmic-buck3-uses-gpio-dvs
- then:
- properties:
- s5m8767,pmic-buck2-uses-gpio-dvs: false
- s5m8767,pmic-buck4-uses-gpio-dvs: false
-
- - if:
+ - not:
required:
+ - s5m8767,pmic-buck2-uses-gpio-dvs
+ - s5m8767,pmic-buck4-uses-gpio-dvs
+ - not:
+ required:
+ - s5m8767,pmic-buck3-uses-gpio-dvs
- s5m8767,pmic-buck4-uses-gpio-dvs
- then:
- properties:
- s5m8767,pmic-buck2-uses-gpio-dvs: false
- s5m8767,pmic-buck3-uses-gpio-dvs: false
examples:
- |