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 <[email protected]>
Acked-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
Mauro Carvalho Chehab 2017-10-09 06:20:48 -04:00
commit 43feabdbcc

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 {