提交 43feabdb 编写于 作者: M Mauro Carvalho Chehab

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: NHans Verkuil <hverkuil@xs4all.nl>
Acked-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 b29fd563
...@@ -32,7 +32,7 @@ struct tpg_rbg_color8 { ...@@ -32,7 +32,7 @@ struct tpg_rbg_color8 {
}; };
struct tpg_rbg_color16 { struct tpg_rbg_color16 {
int r, g, b; __u16 r, g, b;
}; };
enum tpg_color { enum tpg_color {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册