Skip to content

Commit 7c8cb34

Browse files
krzklag-linaro
authored andcommitted
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>
1 parent 104d32b commit 7c8cb34

1 file changed

Lines changed: 7 additions & 18 deletions

File tree

Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -153,29 +153,18 @@ dependencies:
153153
additionalProperties: false
154154

155155
allOf:
156-
- if:
156+
- not:
157157
required:
158158
- s5m8767,pmic-buck2-uses-gpio-dvs
159-
then:
160-
properties:
161-
s5m8767,pmic-buck3-uses-gpio-dvs: false
162-
s5m8767,pmic-buck4-uses-gpio-dvs: false
163-
164-
- if:
165-
required:
166159
- s5m8767,pmic-buck3-uses-gpio-dvs
167-
then:
168-
properties:
169-
s5m8767,pmic-buck2-uses-gpio-dvs: false
170-
s5m8767,pmic-buck4-uses-gpio-dvs: false
171-
172-
- if:
160+
- not:
173161
required:
162+
- s5m8767,pmic-buck2-uses-gpio-dvs
163+
- s5m8767,pmic-buck4-uses-gpio-dvs
164+
- not:
165+
required:
166+
- s5m8767,pmic-buck3-uses-gpio-dvs
174167
- s5m8767,pmic-buck4-uses-gpio-dvs
175-
then:
176-
properties:
177-
s5m8767,pmic-buck2-uses-gpio-dvs: false
178-
s5m8767,pmic-buck3-uses-gpio-dvs: false
179168

180169
examples:
181170
- |

0 commit comments

Comments
 (0)