summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2022-06-08 15:12:04 -0600
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-07-08 15:17:55 -0700
commit8ac14d2c2d81f6a78539ce9670d9283b70a23bf8 (patch)
tree621907820ea46bc4cd35a3264855893c787f168e /Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml
parent7d321ab297c9ea88f6ceab122e3ccc034b304ca1 (diff)
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/allwinner,sun4i-a10-lradc-keys.yaml')
-rw-r--r--Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml5
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml b/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml
index 3399fc288afb..9700dc468b25 100644
--- a/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml
+++ b/Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml
@@ -44,14 +44,13 @@ properties:
patternProperties:
"^button-[0-9]+$":
type: object
+ $ref: input.yaml#
properties:
label:
$ref: /schemas/types.yaml#/definitions/string
description: Descriptive name of the key
- linux,code:
- $ref: /schemas/types.yaml#/definitions/uint32
- description: Keycode to emit
+ linux,code: true
channel:
$ref: /schemas/types.yaml#/definitions/uint32