• Rob Herring's avatar
    dt-bindings: iio: Fix adi, ltc2983 uint64-matrix schema constraints · b02a728f
    Rob Herring authored
    '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: 3986a148 ("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: default avatarRob Herring <robh@kernel.org>
    Acked-by: default avatarNuno Sá <nuno.sa@analog.com>
    Acked-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
    Signed-off-by: default avatarRob Herring <robh@kernel.org>
    b02a728f
adi,ltc2983.yaml 14.8 KB