platform/x86: system76_acpi: Report temperature and fan speed
authorJeremy Soller <jeremy@system76.com>
Wed, 6 Oct 2021 20:21:59 +0000 (14:21 -0600)
committerHans de Goede <hdegoede@redhat.com>
Tue, 19 Oct 2021 14:30:55 +0000 (16:30 +0200)
commit95563d45b5da9cdd07496bf54f0d83f25d679847
treec4a6ea4ae979c8b412144dd657085ac7354404ec
parent249606d37d205eb2f9a6f2c8ecb8bd77b53e5d3e
platform/x86: system76_acpi: Report temperature and fan speed

Add a hwmon interface to report CPU/GPU temperature and fan speed.
sensors now reports an ACPI interface with the entries:

system76_acpi-acpi-0
Adapter: ACPI interface
CPU fan:        0 RPM
GPU fan:        0 RPM
CPU temp:     +47.0°C
GPU temp:      +0.0°C

Signed-off-by: Jeremy Soller <jeremy@system76.com>
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Link: https://lore.kernel.org/r/20211006202202.7479-2-tcrawford@system76.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/system76_acpi.c