aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/sur40.c
diff options
context:
space:
mode:
authorFlorian Echtler <floe@butterbrot.org>2018-02-08 03:43:03 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-02-14 13:27:52 -0500
commit0a90448ead4a7683f9064852a8bb4150639d0fd2 (patch)
treefa14ba275a055970094f8c731a510d28187c6f98 /drivers/input/touchscreen/sur40.c
parentmedia: include/(uapi/)media: add SPDX license info (diff)
downloadlinux-dev-0a90448ead4a7683f9064852a8bb4150639d0fd2.tar.xz
linux-dev-0a90448ead4a7683f9064852a8bb4150639d0fd2.zip
media: add missing blob structure field for tag id
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>
Diffstat (limited to 'drivers/input/touchscreen/sur40.c')
-rw-r--r--drivers/input/touchscreen/sur40.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/sur40.c b/drivers/input/touchscreen/sur40.c
index f16f8358c70a..8375b06ba837 100644
--- a/drivers/input/touchscreen/sur40.c
+++ b/drivers/input/touchscreen/sur40.c
@@ -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;