Skip to content

Commit

Permalink
[media] v4l2-mediabus.h: use two __u16 instead of two __u32
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Dec 17, 2014
1 parent e272d95 commit f2d27e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/uapi/linux/v4l2-mediabus.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ struct v4l2_mbus_framefmt {
__u32 code;
__u32 field;
__u32 colorspace;
__u32 ycbcr_enc;
__u32 quantization;
__u32 reserved[5];
__u16 ycbcr_enc;
__u16 quantization;
__u32 reserved[6];
};

#ifndef __KERNEL__
Expand Down

0 comments on commit f2d27e4

Please sign in to comment.