platform/x86: toshiba_acpi: Add fan RPM reading (hwmon interface)
authorArvid Norlander <lkml@vorpal.se>
Fri, 2 Sep 2022 17:40:18 +0000 (19:40 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 9 Sep 2022 19:58:15 +0000 (21:58 +0200)
commitc727ba4cd95a12d8e43b02963d3ba4daddbd100c
treec1392b7a1953a06003b721e17a4ed08c71d5ba2f
parentdd193dcdc9c02ee28ca0490d737d7a0636332569
platform/x86: toshiba_acpi: Add fan RPM reading (hwmon interface)

This expands on the previous commit, exporting the fan RPM via hwmon.

This will look something like the following when using the "sensors"
command from lm_sensors:

toshiba_acpi_sensors-acpi-0
Adapter: ACPI interface
fan1:           0 RPM

Signed-off-by: Arvid Norlander <lkml@vorpal.se>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220902174018.1720029-3-lkml@vorpal.se
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/Kconfig
drivers/platform/x86/toshiba_acpi.c