media: v4l2-tpg: use __u16 instead of int for struct tpg_rbg_color16

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>
This commit is contained in:
Mauro Carvalho Chehab 2017-10-09 06:20:48 -04:00
parent b29fd5639c
commit 43feabdbcc
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ struct tpg_rbg_color8 {
};
struct tpg_rbg_color16 {
int r, g, b;
__u16 r, g, b;
};
enum tpg_color {