Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: adc: ad7476: Drop redundant prop: true

The ad7476 supports a few variants with different power-supplies and
control GPIOs. The binding first unconditionally introduces all the
properties, and later sets them 'true' or 'false' based on the
combatible.

The 'true' seems to be implied by the initial property introduction so
the 'true' -branches in later conditional handling (based on the
compatible) can be omitted.

Drop the redundant true -branches.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/bee66444bf628ba9a34a02738a1842e2abc14290.1754901948.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Matti Vaittinen and committed by
Jonathan Cameron
260bb98c 27ec39c7

+24 -30
+24 -30
Documentation/devicetree/bindings/iio/adc/adi,ad7476.yaml
··· 106 106 - vcc-supply 107 107 # Devices with a vref 108 108 - if: 109 - properties: 110 - compatible: 111 - contains: 112 - enum: 113 - - adi,ad7091r 114 - - adi,ad7273 115 - - adi,ad7274 116 - - adi,ad7475 117 - - lltc,ltc2314-14 109 + not: 110 + properties: 111 + compatible: 112 + contains: 113 + enum: 114 + - adi,ad7091r 115 + - adi,ad7273 116 + - adi,ad7274 117 + - adi,ad7475 118 + - lltc,ltc2314-14 118 119 then: 119 - properties: 120 - vref-supply: true 121 - else: 122 120 properties: 123 121 vref-supply: false 124 122 # Devices with a vref where it is not optional ··· 133 135 required: 134 136 - vref-supply 135 137 - if: 136 - properties: 137 - compatible: 138 - contains: 139 - enum: 140 - - adi,ad7475 141 - - adi,ad7495 138 + not: 139 + properties: 140 + compatible: 141 + contains: 142 + enum: 143 + - adi,ad7475 144 + - adi,ad7495 142 145 then: 143 - properties: 144 - vdrive-supply: true 145 - else: 146 146 properties: 147 147 vdrive-supply: false 148 148 - if: 149 - properties: 150 - compatible: 151 - contains: 152 - enum: 153 - - adi,ad7091 154 - - adi,ad7091r 149 + not: 150 + properties: 151 + compatible: 152 + contains: 153 + enum: 154 + - adi,ad7091 155 + - adi,ad7091r 155 156 then: 156 - properties: 157 - adi,conversion-start-gpios: true 158 - else: 159 157 properties: 160 158 adi,conversion-start-gpios: false 161 159