dt-bindings: iio: Fix adi, ltc2983 uint64-matrix schema constraints
authorRob Herring <robh@kernel.org>
Fri, 27 Mar 2020 22:45:01 +0000 (16:45 -0600)
committerRob Herring <robh@kernel.org>
Tue, 31 Mar 2020 22:06:04 +0000 (16:06 -0600)
commitb02a728ff348b047072ef9875547d90ed834cd99
tree814bd78aa87445235af614612978f1f49802a743
parent8c0245602cfaf75cf2bf1ea194455b7bd38060f4
dt-bindings: iio: Fix adi, ltc2983 uint64-matrix schema constraints

'minItems' and 'maxItems' apply at the same level as 'items' schemas as
the keywords apply to arrays. What's currently defined is a 3
dimensional matrix with the outer size being undefined. To fix this,
minItems/maxItems needs to be moved up a level.

With this fixed, the example fails validation. For matrix types, the dts
syntax must use brackets (<>) matching the schema definition. In this
case, the inner array size is 2 elements, so let's add the correct
bracketing.

Fixes: 3986a14870cb ("dt-bindings: iio: Add ltc2983 documentation")
Cc: "Nuno Sá" <nuno.sa@analog.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Hartmut Knaack <knaack.h@gmx.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Cc: linux-iio@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Nuno Sá <nuno.sa@analog.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml