summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2024-02-24 11:45:06 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-03-07 20:21:53 +0000
commit508ecc78b6c983a7921bee2f4bd22682f9f0396e (patch)
tree68f241e3b79a6f636e37361f239e53aa1ca8c1eb /Documentation
parentab23f1bffcf690ffae2b0c4bb8b09420299be05c (diff)
downloadlinux-stable-508ecc78b6c983a7921bee2f4bd22682f9f0396e.tar.gz
linux-stable-508ecc78b6c983a7921bee2f4bd22682f9f0396e.tar.bz2
linux-stable-508ecc78b6c983a7921bee2f4bd22682f9f0396e.zip
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: Rob Herring <robh@kernel.org> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20240224114516.86365-2-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/nvmem/layouts/fixed-cell.yaml22
1 files changed, 10 insertions, 12 deletions
diff --git a/Documentation/devicetree/bindings/nvmem/layouts/fixed-cell.yaml b/Documentation/devicetree/bindings/nvmem/layouts/fixed-cell.yaml
index ac2381e66027..8b3826243ddd 100644
--- a/Documentation/devicetree/bindings/nvmem/layouts/fixed-cell.yaml
+++ b/Documentation/devicetree/bindings/nvmem/layouts/fixed-cell.yaml
@@ -36,20 +36,18 @@ properties:
allOf:
- if:
+ properties:
+ compatible:
+ contains:
+ const: mac-base
required: [ compatible ]
then:
- if:
- properties:
- compatible:
- contains:
- const: mac-base
- then:
- properties:
- "#nvmem-cell-cells":
- description: The first argument is a MAC address offset.
- const: 1
- required:
- - "#nvmem-cell-cells"
+ properties:
+ "#nvmem-cell-cells":
+ description: The first argument is a MAC address offset.
+ const: 1
+ required:
+ - "#nvmem-cell-cells"
required:
- reg