Commit 43feabdb authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

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: default avatarHans Verkuil <hverkuil@xs4all.nl>
Acked-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent b29fd563
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ struct tpg_rbg_color8 {
};

struct tpg_rbg_color16 {
	int r, g, b;
	__u16 r, g, b;
};

enum tpg_color {