aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Boyd <swboyd@chromium.org>2022-05-18 15:00:08 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-05-18 15:01:06 -0700
commitd95bca4fbde0a29a3d987c39fd17e414f1ed5ec6 (patch)
treedbd8984e6c6f06eae16dbc435837258b2490e86e
parentca1eadbfcd36bec73f2a2111c28e8c7e9e8ae6c0 (diff)
downloadinput-ib/5.17-cros-ec-keyb.tar.gz
dt-bindings: google,cros-ec-keyb: Fixup bad compatible matchib/5.17-cros-ec-keyb
This uses anyOf which is wrong. Use oneOf and move the items under the description. Also drop allOf for $ref. Reported-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Stephen Boyd <swboyd@chromium.org> Link: https://lore.kernel.org/r/CAE-0n50KE9bkqZvCOLtCGiq3g1jYhK7zpVcVFBzinaguNhNaPw@mail.gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml11
1 files changed, 4 insertions, 7 deletions
diff --git a/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml b/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml
index e11cbf5087235..c31a02149f37f 100644
--- a/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml
+++ b/Documentation/devicetree/bindings/input/google,cros-ec-keyb.yaml
@@ -20,13 +20,11 @@ description: |
properties:
compatible:
- anyOf:
+ oneOf:
- description: ChromeOS EC with only buttons/switches
- - items:
- - const: google,cros-ec-keyb-switches
+ const: google,cros-ec-keyb-switches
- description: ChromeOS EC with keyboard and possibly buttons/switches
- - items:
- - const: google,cros-ec-keyb
+ const: google,cros-ec-keyb
google,needs-ghost-filter:
description:
@@ -58,8 +56,7 @@ if:
contains:
const: google,cros-ec-keyb
then:
- allOf:
- - $ref: "/schemas/input/matrix-keymap.yaml#"
+ $ref: "/schemas/input/matrix-keymap.yaml#"
required:
- keypad,num-rows
- keypad,num-columns