diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-12-05 08:02:47 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-12-16 20:21:36 -0500 |
commit | f2d27e4519e5373767815d2050293c628242e34f (patch) | |
tree | e8f49c7aab92ac1943476b902f605103672db9e9 | |
parent | e272d95f8c0544cff55c485a10828b063c8e417c (diff) |
[media] v4l2-mediabus.h: use two __u16 instead of two __u32
The ycbcr_enc and quantization fields do not need a __u32. Switch to
two __u16 types, thus preserving alignment and avoiding holes in the
struct. This makes one more __u32 available for future expansion.
Suggested by Sakari Ailus.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | include/uapi/linux/v4l2-mediabus.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/uapi/linux/v4l2-mediabus.h b/include/uapi/linux/v4l2-mediabus.h index 5a86d8ede09c..26db20647e6f 100644 --- a/include/uapi/linux/v4l2-mediabus.h +++ b/include/uapi/linux/v4l2-mediabus.h | |||
@@ -31,9 +31,9 @@ struct v4l2_mbus_framefmt { | |||
31 | __u32 code; | 31 | __u32 code; |
32 | __u32 field; | 32 | __u32 field; |
33 | __u32 colorspace; | 33 | __u32 colorspace; |
34 | __u32 ycbcr_enc; | 34 | __u16 ycbcr_enc; |
35 | __u32 quantization; | 35 | __u16 quantization; |
36 | __u32 reserved[5]; | 36 | __u32 reserved[6]; |
37 | }; | 37 | }; |
38 | 38 | ||
39 | #ifndef __KERNEL__ | 39 | #ifndef __KERNEL__ |