summaryrefslogtreecommitdiffstats
path: root/include/media/tpg
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2017-10-09 12:20:48 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-18 18:29:40 +0100
commit43feabdbcc52297917720273a731bd5fe788d972 (patch)
tree253d93214111450b9ac2e2210c97dc5d7dab17ee /include/media/tpg
parentmedia: v4l2-tpg.h: rename color structs (diff)
downloadlinux-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.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 {