]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
media: add missing blob structure field for tag id
authorFlorian Echtler <floe@butterbrot.org>
Thu, 8 Feb 2018 08:43:03 +0000 (03:43 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 14 Feb 2018 18:27:52 +0000 (13:27 -0500)
The SUR40 can recognize specific printed patterns directly in hardware;
this information (i.e. the pattern id) is present but currently unused
in the blob structure.

Signed-off-by: Florian Echtler <floe@butterbrot.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/input/touchscreen/sur40.c

index f16f8358c70aab09da0cda18a4fa623f7d8a027a..8375b06ba8378b673e57338041e6cf752304663b 100644 (file)
@@ -81,7 +81,10 @@ struct sur40_blob {
 
        __le32 area;       /* size in pixels/pressure (?) */
 
-       u8 padding[32];
+       u8 padding[24];
+
+       __le32 tag_id;     /* valid when type == 0x04 (SUR40_TAG) */
+       __le32 unknown;
 
 } __packed;