media: v4l2-tpg: use __u16 instead of int for struct tpg_rbg_color16
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 9 Oct 2017 10:20:48 +0000 (06:20 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 18 Dec 2017 17:29:40 +0000 (12:29 -0500)
Despite the struct says "color16", it was actually using 32 bits
for each color. Fix it.

Suggested-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
include/media/tpg/v4l2-tpg.h

index bc0b384..823fade 100644 (file)
@@ -32,7 +32,7 @@ struct tpg_rbg_color8 {
 };
 
 struct tpg_rbg_color16 {
-       int r, g, b;
+       __u16 r, g, b;
 };
 
 enum tpg_color {