From: Mauro Carvalho Chehab Date: Mon, 9 Oct 2017 10:20:48 +0000 (-0400) Subject: media: v4l2-tpg: use __u16 instead of int for struct tpg_rbg_color16 X-Git-Tag: v4.16-rc1~57^2~174 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=43feabdbcc52297917720273a731bd5fe788d972;p=users%2Fjedix%2Flinux-maple.git 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 Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/include/media/tpg/v4l2-tpg.h b/include/media/tpg/v4l2-tpg.h index bc0b384407195..823fadede7bf7 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 {