]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
platform/surface: aggregator_registry: Add support for thermal sensors on the Surface...
authorMaximilian Luz <luzmaximilian@gmail.com>
Sat, 30 Mar 2024 11:24:02 +0000 (12:24 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 8 Apr 2024 15:22:33 +0000 (17:22 +0200)
The Surface Pro 9 has thermal sensors connected via the Surface
Aggregator Module. Add a device node to support those.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20240330112409.3402943-4-luzmaximilian@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/surface/surface_aggregator_registry.c

index 79e52eddabd0cf68129e5088d8f6c04bb9d95a82..1c4d74db08c9546f09e4824b904159eddc86319b 100644 (file)
@@ -88,6 +88,12 @@ static const struct software_node ssam_node_tmp_perf_profile_with_fan = {
        .properties = ssam_node_tmp_perf_profile_has_fan,
 };
 
+/* Thermal sensors. */
+static const struct software_node ssam_node_tmp_sensors = {
+       .name = "ssam:01:03:01:00:02",
+       .parent = &ssam_node_root,
+};
+
 /* Fan speed function. */
 static const struct software_node ssam_node_fan_speed = {
        .name = "ssam:01:05:01:01:01",
@@ -325,6 +331,7 @@ static const struct software_node *ssam_node_group_sp9[] = {
        &ssam_node_bat_ac,
        &ssam_node_bat_main,
        &ssam_node_tmp_perf_profile_with_fan,
+       &ssam_node_tmp_sensors,
        &ssam_node_fan_speed,
        &ssam_node_pos_tablet_switch,
        &ssam_node_hid_kip_keyboard,