diff mbox series

dt-bindings: input: iqs7222: Use central 'linux,code' definition

Message ID 20220710024713.17275-1-jeff@labundy.com (mailing list archive)
State Mainlined
Commit 39636805cab2d46aa645f389f3fca8040afd4c4f
Headers show
Series dt-bindings: input: iqs7222: Use central 'linux,code' definition | expand

Commit Message

Jeff LaBundy July 10, 2022, 2:47 a.m. UTC
Channel events adopt the newly centralized 'linux,code' property;
slider events should too.

Fixes: 8ac14d2c2d81 ("dt-bindings: input: Centralize 'linux,code' definition")
Signed-off-by: Jeff LaBundy <jeff@labundy.com>
---
 Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

Rob Herring July 11, 2022, 7:40 p.m. UTC | #1
On Sat, Jul 9, 2022 at 8:47 PM Jeff LaBundy <jeff@labundy.com> wrote:
>
> Channel events adopt the newly centralized 'linux,code' property;
> slider events should too.
>
> Fixes: 8ac14d2c2d81 ("dt-bindings: input: Centralize 'linux,code' definition")
> Signed-off-by: Jeff LaBundy <jeff@labundy.com>
> ---
>  Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

Acked-by: Rob Herring <robh@kernel.org>
Dmitry Torokhov July 11, 2022, 10:32 p.m. UTC | #2
On Sat, Jul 09, 2022 at 09:47:13PM -0500, Jeff LaBundy wrote:
> Channel events adopt the newly centralized 'linux,code' property;
> slider events should too.
> 
> Fixes: 8ac14d2c2d81 ("dt-bindings: input: Centralize 'linux,code' definition")
> Signed-off-by: Jeff LaBundy <jeff@labundy.com>

Applied, thank you.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml b/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml
index aa41fa3bde7a..02e605fac408 100644
--- a/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml
+++ b/Documentation/devicetree/bindings/input/azoteq,iqs7222.yaml
@@ -566,14 +566,13 @@  patternProperties:
     patternProperties:
       "^event-(press|tap|(swipe|flick)-(pos|neg))$":
         type: object
+        $ref: input.yaml#
         description:
           Represents a press or gesture (IQS7222A only) event reported by
           the slider.
 
         properties:
-          linux,code:
-            $ref: /schemas/types.yaml#/definitions/uint32
-            description: Numeric key code associated with the event.
+          linux,code: true
 
           azoteq,gesture-max-ms:
             multipleOf: 4