Skip to content

Commit

Permalink
media: add missing blob structure field for tag id
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Echtler authored and Mauro Carvalho Chehab committed Feb 14, 2018
1 parent ab15d24 commit 0a90448
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/input/touchscreen/sur40.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0a90448

Please sign in to comment.