HID: Reorder fields in 'struct hid_input'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 18 Jun 2023 09:11:58 +0000 (11:11 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Aug 2023 09:21:22 +0000 (11:21 +0200)
commit574d06ceb88fb735a7d88c22e6531f4849aada51
tree190ee3a54dda1a726b12a76e54e8175c8f12ff4b
parent276e14e6c3993317257e1787e93b7166fbc30905
HID: Reorder fields in 'struct hid_input'

Group some variables based on their sizes to reduce hole and avoid padding.
On x86_64, this shrinks the size of 'struct hid_input'
from 72 to 64 bytes.

It saves a few bytes of memory and is more cache-line friendly.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
include/linux/hid.h