hwmon: (dell-smm) Pack the whole smm_regs struct
authorArmin Wolf <W_Armin@gmx.de>
Tue, 21 Dec 2021 16:28:05 +0000 (17:28 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 26 Dec 2021 23:02:07 +0000 (15:02 -0800)
commit565210c7812013aac7969320ac5b86fff7a74cc6
treedaa8f24ec73220c3cda0f8a6cabb80b1f479b6d8
parent20f2e67cbc7599217d5a764c76e9c2bbe85e3761
hwmon: (dell-smm) Pack the whole smm_regs struct

When desiring the whole struct to be packed, __packed
should be applied to the whole struct, not just
every struct member except the first one.

Tested on a Dell Inspiron 3505.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20211221162805.104202-1-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/dell-smm-hwmon.c