diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-10-09 12:20:48 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-12-18 18:29:40 +0100 |
commit | 43feabdbcc52297917720273a731bd5fe788d972 (patch) | |
tree | 253d93214111450b9ac2e2210c97dc5d7dab17ee /include/media/tpg | |
parent | media: v4l2-tpg.h: rename color structs (diff) | |
download | linux-43feabdbcc52297917720273a731bd5fe788d972.tar.xz linux-43feabdbcc52297917720273a731bd5fe788d972.zip |
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>
Diffstat (limited to 'include/media/tpg')
-rw-r--r-- | include/media/tpg/v4l2-tpg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/tpg/v4l2-tpg.h b/include/media/tpg/v4l2-tpg.h index bc0b38440719..823fadede7bf 100644 --- a/include/media/tpg/v4l2-tpg.h +++ b/include/media/tpg/v4l2-tpg.h @@ -32,7 +32,7 @@ struct tpg_rbg_color8 { }; struct tpg_rbg_color16 { - int r, g, b; + __u16 r, g, b; }; enum tpg_color { |