dt-bindings: google,cros-ec-keyb: Fixup bad compatible match
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>
This commit is contained in:
parent
ca1eadbfcd
commit
d95bca4fbd
1 changed files with 4 additions and 7 deletions
|
@ -20,13 +20,11 @@ description: |
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
compatible:
|
compatible:
|
||||||
anyOf:
|
oneOf:
|
||||||
- description: ChromeOS EC with only buttons/switches
|
- 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
|
- description: ChromeOS EC with keyboard and possibly buttons/switches
|
||||||
- items:
|
const: google,cros-ec-keyb
|
||||||
- const: google,cros-ec-keyb
|
|
||||||
|
|
||||||
google,needs-ghost-filter:
|
google,needs-ghost-filter:
|
||||||
description:
|
description:
|
||||||
|
@ -58,8 +56,7 @@ if:
|
||||||
contains:
|
contains:
|
||||||
const: google,cros-ec-keyb
|
const: google,cros-ec-keyb
|
||||||
then:
|
then:
|
||||||
allOf:
|
$ref: "/schemas/input/matrix-keymap.yaml#"
|
||||||
- $ref: "/schemas/input/matrix-keymap.yaml#"
|
|
||||||
required:
|
required:
|
||||||
- keypad,num-rows
|
- keypad,num-rows
|
||||||
- keypad,num-columns
|
- keypad,num-columns
|
||||||
|
|
Loading…
Add table
Reference in a new issue