dt-bindings: iio: temperature: ltc2983: Fix child node unevaluated properties
authorRob Herring <robh@kernel.org>
Tue, 4 Apr 2023 20:50:13 +0000 (15:50 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 10 Apr 2023 11:26:34 +0000 (12:26 +0100)
commit543c8f2f3cc4706ab0dd2e70dc87bdcbcf8126b3
treeab65ff66c9e873d474504ac0a20e7c255cb96d6c
parent7c95a3f51a54db694d3eeef60e77e3a8558ef25e
dt-bindings: iio: temperature: ltc2983: Fix child node unevaluated properties

The child node schemas are missing 'unevaluatedProperties' constraints,
so any unknown properties are allowed. The current structure with
multiple patternProperties schemas doesn't work for
unevaluatedProperties as each sub-schema is evaluated independently. To
fix this, move the sub-schema for all child nodes to a $defs entry and
reference it from each named child node.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230404205014.644336-1-robh@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml