video/hdmi: Reorder fields in 'struct hdmi_avi_infoframe'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 18 Jun 2023 20:52:28 +0000 (22:52 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 19 Jun 2023 07:02:51 +0000 (09:02 +0200)
commit568c69ae2fea27e0152e4ffeee7c6f354c61810f
treef3862291740ec091e2f583b2db8a5881f4da41b6
parent07baac6cbac7c071573ecae280a408dde5f18796
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 <christophe.jaillet@wanadoo.fr>
Signed-off-by: Helge Deller <deller@gmx.de>
include/linux/hdmi.h