Skip to content

Commit 568c69a

Browse files
tititiou36hdeller
authored andcommitted
video/hdmi: Reorder fields in 'struct hdmi_avi_infoframe'
Group some variables based on their sizes to reduce hole and avoid padding. On x86_64, this shrinks the size of 'struct hdmi_avi_infoframe' from 68 to 60 bytes. It saves a few bytes of memory and is more cache-line friendly. This also reduces the union hdmi_infoframe the same way. Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 07baac6 commit 568c69a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/hdmi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,19 +170,19 @@ struct hdmi_avi_infoframe {
170170
enum hdmi_infoframe_type type;
171171
unsigned char version;
172172
unsigned char length;
173+
bool itc;
174+
unsigned char pixel_repeat;
173175
enum hdmi_colorspace colorspace;
174176
enum hdmi_scan_mode scan_mode;
175177
enum hdmi_colorimetry colorimetry;
176178
enum hdmi_picture_aspect picture_aspect;
177179
enum hdmi_active_aspect active_aspect;
178-
bool itc;
179180
enum hdmi_extended_colorimetry extended_colorimetry;
180181
enum hdmi_quantization_range quantization_range;
181182
enum hdmi_nups nups;
182183
unsigned char video_code;
183184
enum hdmi_ycc_quantization_range ycc_quantization_range;
184185
enum hdmi_content_type content_type;
185-
unsigned char pixel_repeat;
186186
unsigned short top_bar;
187187
unsigned short bottom_bar;
188188
unsigned short left_bar;

0 commit comments

Comments
 (0)