Commit 508ecc78 authored by Rob Herring's avatar Rob Herring Committed by Greg Kroah-Hartman
Browse files

nvmem: fixed-cell: Simplify nested if/then schema



There's no reason to have a nested if/then schema as checking for compatible
being present and containing 'mac-base' can all be done in one 'if' schema.

Signed-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20240224114516.86365-2-srinivas.kandagatla@linaro.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ab23f1bf
Loading
Loading
Loading
Loading
+10 −12
Original line number Diff line number Diff line
@@ -36,13 +36,11 @@ properties:

allOf:
  - if:
      required: [ compatible ]
    then:
      if:
      properties:
        compatible:
          contains:
            const: mac-base
      required: [ compatible ]
    then:
      properties:
        "#nvmem-cell-cells":