From: David Lechner Date: Thu, 8 Aug 2024 21:12:08 +0000 (-0500) Subject: dt-bindings: iio: ad4695: fix common-mode-channel X-Git-Tag: v6.12-rc1~39^2~37^2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=46e4ce4c11abf904dec37ea9a3b3c741cbcf34bd;p=thirdparty%2Fkernel%2Flinux.git dt-bindings: iio: ad4695: fix common-mode-channel The common-mode-channel property is a scalar, not an array, so we should not be using items: in the schema when specifying allowable values. Reported-by: Rob Herring Closes: https://lore.kernel.org/linux-iio/CAL_JsqKaddw8FnPfdnhKhHUb8AcTxFadc_eZmxjX0QxFR80=mw@mail.gmail.com/ Fixes: b40cafc11436 ("dt-bindings: iio: adc: add AD4695 and similar ADCs") Signed-off-by: David Lechner Reviewed-by: Krzysztof Kozlowski Acked-by: Rob Herring (Arm) Link: https://patch.msgid.link/20240808-iio-adc-ad4695-fix-dt-bindings-v1-1-5cf37b9547b0@baylibre.com Signed-off-by: Jonathan Cameron --- diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml index a2e824e26691b..310f046e139f9 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4695.yaml @@ -136,8 +136,7 @@ patternProperties: and OxFE is COM. Macros are available for these values in dt-bindings/iio/adi,ad4695.h. Values 1 to 15 correspond to INx inputs. Only odd numbered INx inputs can be used as common mode channels. - items: - enum: [1, 3, 5, 7, 9, 11, 13, 15, 0xFE, 0xFF] + enum: [1, 3, 5, 7, 9, 11, 13, 15, 0xFE, 0xFF] default: 0xFF adi,no-high-z: @@ -202,8 +201,7 @@ allOf: reg: maximum: 7 common-mode-channel: - items: - enum: [1, 3, 5, 7, 0xFE, 0xFF] + enum: [1, 3, 5, 7, 0xFE, 0xFF] "^channel@[8-9a-f]$": false unevaluatedProperties: false