diff options
author | Rob Herring <robh@kernel.org> | 2022-06-09 00:12:04 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-07-09 01:17:55 +0300 |
commit | 8ac14d2c2d81f6a78539ce9670d9283b70a23bf8 (patch) | |
tree | 621907820ea46bc4cd35a3264855893c787f168e /Documentation/devicetree/bindings/input/max77650-onkey.yaml | |
parent | 7d321ab297c9ea88f6ceab122e3ccc034b304ca1 (diff) | |
download | linux-8ac14d2c2d81f6a78539ce9670d9283b70a23bf8.tar.xz |
dt-bindings: input: Centralize 'linux,code' definition
Multiple bindings use 'linux,code', but there is not a central
definition and type. Add 'linux,code' to input.yaml and update all the
users to use it.
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Samuel Holland <samuel@sholland.org>
Acked-by: Jeff LaBundy <jeff@labundy.com>
Acked-by: Artur Rojek <contact@artur-rojek.eu>
Link: https://lore.kernel.org/r/20220608211207.2058487-3-robh@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input/max77650-onkey.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/input/max77650-onkey.yaml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/input/max77650-onkey.yaml b/Documentation/devicetree/bindings/input/max77650-onkey.yaml index 3a2ad6ec64db..48edc0c8c1dd 100644 --- a/Documentation/devicetree/bindings/input/max77650-onkey.yaml +++ b/Documentation/devicetree/bindings/input/max77650-onkey.yaml @@ -16,15 +16,15 @@ description: | The onkey controller is represented as a sub-node of the PMIC node on the device tree. +allOf: + - $ref: input.yaml# + properties: compatible: const: maxim,max77650-onkey linux,code: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - The key-code to be reported when the key is pressed. Defaults - to KEY_POWER. + default: 116 # KEY_POWER maxim,onkey-slide: $ref: /schemas/types.yaml#/definitions/flag |