hwmon: (dell-smm) Move DMI config handling to module init
authorArmin Wolf <W_Armin@gmx.de>
Thu, 23 Nov 2023 00:48:15 +0000 (01:48 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 11 Dec 2023 14:21:01 +0000 (06:21 -0800)
commit2615f1ee7f67a7be0c565abc4b54eb226ad0d79f
tree4374d511349fb59f170168a1b49b0d7a03e4c987
parent9848fcf431906ead348bc5f8ccaad8b20ee97d93
hwmon: (dell-smm) Move DMI config handling to module init

Future SMM calling backends will not be able to probe during
module init, meaning the DMI tables holding config data would
have to drop their __initconst attribute.
Prevent this by moving the config handling to module init.

Tested-by: <serverror@serverror.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20231123004820.50635-5-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/dell-smm-hwmon.c