platform/surface: aggregator_registry: add entry for fan speed
authorIvor Wanders <ivor@iwanders.net>
Wed, 31 Jan 2024 00:58:56 +0000 (19:58 -0500)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 6 Feb 2024 10:06:03 +0000 (12:06 +0200)
Add an entry for the fan speed function.
Add this new entry to the Surface Pro 9 group.

Signed-off-by: Ivor Wanders <ivor@iwanders.net>
Link: https://github.com/linux-surface/kernel/pull/144
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20240131005856.10180-3-ivor@iwanders.net
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/surface/surface_aggregator_registry.c

index aeb3feae40ff35f153fdf35881ed4ec9de949590..035d6b4105cd637f5413661fe2bae53531693cf4 100644 (file)
@@ -74,6 +74,12 @@ static const struct software_node ssam_node_tmp_pprof = {
        .parent = &ssam_node_root,
 };
 
+/* Fan speed function. */
+static const struct software_node ssam_node_fan_speed = {
+       .name = "ssam:01:05:01:01:01",
+       .parent = &ssam_node_root,
+};
+
 /* Tablet-mode switch via KIP subsystem. */
 static const struct software_node ssam_node_kip_tablet_switch = {
        .name = "ssam:01:0e:01:00:01",
@@ -305,6 +311,7 @@ static const struct software_node *ssam_node_group_sp9[] = {
        &ssam_node_bat_ac,
        &ssam_node_bat_main,
        &ssam_node_tmp_pprof,
+       &ssam_node_fan_speed,
        &ssam_node_pos_tablet_switch,
        &ssam_node_hid_kip_keyboard,
        &ssam_node_hid_kip_penstash,