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

Future SMM calling backends will not be able to probe during
module init, meaning the DMI tables used for whitelisting
features would have to drop their __initconst attribute.
Prevent this by moving the whitelist 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-4-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/dell-smm-hwmon.c