From: Florian Echtler Date: Thu, 8 Feb 2018 08:43:03 +0000 (-0500) Subject: media: add missing blob structure field for tag id X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0a90448ead4a7683f9064852a8bb4150639d0fd2;p=linux.git 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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/input/touchscreen/sur40.c b/drivers/input/touchscreen/sur40.c index f16f8358c70aa..8375b06ba8378 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;