Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

platform/surface: aggregator_registry: Add platform profile device

Add the SSAM platform profile device to the SSAM device registry. This
device is accessible under the thermal subsystem (TC=0x03) and needs to
be registered for all Surface models.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20210212115439.1525216-5-luzmaximilian@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Maximilian Luz and committed by
Hans de Goede
7b5ee8d0 17590927

+15
+15
drivers/platform/surface/surface_aggregator_registry.c
··· 65 65 .parent = &ssam_node_hub_base, 66 66 }; 67 67 68 + /* Platform profile / performance-mode device. */ 69 + static const struct software_node ssam_node_tmp_pprof = { 70 + .name = "ssam:01:03:01:00:01", 71 + .parent = &ssam_node_root, 72 + }; 73 + 68 74 /* Devices for Surface Book 2. */ 69 75 static const struct software_node *ssam_node_group_sb2[] = { 70 76 &ssam_node_root, 77 + &ssam_node_tmp_pprof, 71 78 NULL, 72 79 }; 73 80 ··· 85 78 &ssam_node_bat_ac, 86 79 &ssam_node_bat_main, 87 80 &ssam_node_bat_sb3base, 81 + &ssam_node_tmp_pprof, 88 82 NULL, 89 83 }; 90 84 91 85 /* Devices for Surface Laptop 1. */ 92 86 static const struct software_node *ssam_node_group_sl1[] = { 93 87 &ssam_node_root, 88 + &ssam_node_tmp_pprof, 94 89 NULL, 95 90 }; 96 91 97 92 /* Devices for Surface Laptop 2. */ 98 93 static const struct software_node *ssam_node_group_sl2[] = { 99 94 &ssam_node_root, 95 + &ssam_node_tmp_pprof, 100 96 NULL, 101 97 }; 102 98 ··· 108 98 &ssam_node_root, 109 99 &ssam_node_bat_ac, 110 100 &ssam_node_bat_main, 101 + &ssam_node_tmp_pprof, 111 102 NULL, 112 103 }; 113 104 ··· 117 106 &ssam_node_root, 118 107 &ssam_node_bat_ac, 119 108 &ssam_node_bat_main, 109 + &ssam_node_tmp_pprof, 120 110 NULL, 121 111 }; 122 112 123 113 /* Devices for Surface Pro 5. */ 124 114 static const struct software_node *ssam_node_group_sp5[] = { 125 115 &ssam_node_root, 116 + &ssam_node_tmp_pprof, 126 117 NULL, 127 118 }; 128 119 129 120 /* Devices for Surface Pro 6. */ 130 121 static const struct software_node *ssam_node_group_sp6[] = { 131 122 &ssam_node_root, 123 + &ssam_node_tmp_pprof, 132 124 NULL, 133 125 }; 134 126 ··· 140 126 &ssam_node_root, 141 127 &ssam_node_bat_ac, 142 128 &ssam_node_bat_main, 129 + &ssam_node_tmp_pprof, 143 130 NULL, 144 131 }; 145 132