hwmon: (sch56xx-common) Add automatic module loading on supported devices
authorArmin Wolf <W_Armin@gmx.de>
Mon, 31 Jan 2022 21:19:33 +0000 (22:19 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 5 Feb 2022 18:01:34 +0000 (10:01 -0800)
commitde7084a745192b8b3d9230ffb0d7b9393085565b
tree9b97cdec069fb8411438f7f32f1ad65566ee442b
parent64e1d02550b7256a5d8a0db9d486287c6158a93e
hwmon: (sch56xx-common) Add automatic module loading on supported devices

This patch enables the sch56xx-common module to get automatically
loaded on supported machines.
If a machine supports Fujitsu's SCH56XX-based hardware monitoring
solutions, it contains a "Antiope"/" Antiope" dmi onboard device
in case of the sch5627 or a "Theseus"/" Theseus" dmi onboard device
in case of the sch5636.
Since some machines like the Esprimo C700 have a seemingly faulty
DMI table containing both onboard devices, the driver still needs
to probe for the individual superio chip, which in presence of at
least one DMI onboard device however can be considered safe.
Also add a module parameter allowing for bypassing the
DMI check.

Tested on a Fujitsu Esprimo P720.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20220131211935.3656-3-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/sch56xx-common.c