summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2017-10-09 06:20:48 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-18 12:29:40 -0500
commit43feabdbcc52297917720273a731bd5fe788d972 (patch)
tree253d93214111450b9ac2e2210c97dc5d7dab17ee /include
parentb29fd5639c8a7d2f419f0aea5a36f9a58027b29d (diff)
downloadlinux-43feabdbcc52297917720273a731bd5fe788d972.tar.bz2
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')
-rw-r--r--include/media/tpg/v4l2-tpg.h2
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 {