Skip to content

Commit 349ed98

Browse files
committed
platform/surface: aggregator_hub: Use target-ID enum instead of hard-coding values
Instead of hard-coding the target ID, use the respective enum ssam_ssh_tid value. Signed-off-by: Maximilian Luz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Patchset: surface-sam
1 parent 2538a64 commit 349ed98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/platform/surface/surface_aggregator_hub.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static void ssam_hub_remove(struct ssam_device *sdev)
214214

215215
SSAM_DEFINE_SYNC_REQUEST_R(ssam_bas_query_opmode, u8, {
216216
.target_category = SSAM_SSH_TC_BAS,
217-
.target_id = 0x01,
217+
.target_id = SSAM_SSH_TID_SAM,
218218
.command_id = 0x0d,
219219
.instance_id = 0x00,
220220
});
@@ -292,7 +292,7 @@ static const struct ssam_hub_desc base_hub = {
292292

293293
SSAM_DEFINE_SYNC_REQUEST_R(__ssam_kip_query_state, u8, {
294294
.target_category = SSAM_SSH_TC_KIP,
295-
.target_id = 0x01,
295+
.target_id = SSAM_SSH_TID_SAM,
296296
.command_id = 0x2c,
297297
.instance_id = 0x00,
298298
});

0 commit comments

Comments
 (0)