Skip to content

Commit 14a3023

Browse files
mripardjic23
authored andcommitted
dt-bindings: iio: st: Remove wrong items length check
The original bindings was listing the length of the interrupts as either 1 or 2, depending on the setup. This is also what is enforced by the top level schema. However, that is further constrained with an if clause that require exactly two interrupts, even though it might not make sense on those devices or in some setups. Let's remove the clause entirely. Cc: Denis Ciocca <[email protected]> Cc: Lars-Peter Clausen <[email protected]> Fixes: 0cd7114 ("iio: st-sensors: Update ST Sensor bindings") Signed-off-by: Maxime Ripard <[email protected]> Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 9f9decd commit 14a3023

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

Documentation/devicetree/bindings/iio/st,st-sensors.yaml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -152,47 +152,6 @@ allOf:
152152
maxItems: 1
153153
st,drdy-int-pin: false
154154

155-
- if:
156-
properties:
157-
compatible:
158-
enum:
159-
# Two intertial interrupts i.e. accelerometer/gyro interrupts
160-
- st,h3lis331dl-accel
161-
- st,l3g4200d-gyro
162-
- st,l3g4is-gyro
163-
- st,l3gd20-gyro
164-
- st,l3gd20h-gyro
165-
- st,lis2de12
166-
- st,lis2dw12
167-
- st,lis2hh12
168-
- st,lis2dh12-accel
169-
- st,lis331dl-accel
170-
- st,lis331dlh-accel
171-
- st,lis3de
172-
- st,lis3dh-accel
173-
- st,lis3dhh
174-
- st,lis3mdl-magn
175-
- st,lng2dm-accel
176-
- st,lps331ap-press
177-
- st,lsm303agr-accel
178-
- st,lsm303dlh-accel
179-
- st,lsm303dlhc-accel
180-
- st,lsm303dlm-accel
181-
- st,lsm330-accel
182-
- st,lsm330-gyro
183-
- st,lsm330d-accel
184-
- st,lsm330d-gyro
185-
- st,lsm330dl-accel
186-
- st,lsm330dl-gyro
187-
- st,lsm330dlc-accel
188-
- st,lsm330dlc-gyro
189-
- st,lsm9ds0-gyro
190-
- st,lsm9ds1-magn
191-
then:
192-
properties:
193-
interrupts:
194-
maxItems: 2
195-
196155
required:
197156
- compatible
198157
- reg

0 commit comments

Comments
 (0)