Skip to content

Commit d2bc5ad

Browse files
qzedjwrdegoede
authored andcommitted
platform/surface: dtx: 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]>
1 parent 3d17f35 commit d2bc5ad

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

drivers/platform/surface/surface_dtx.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,63 +71,63 @@ static_assert(sizeof(struct ssam_bas_base_info) == 2);
7171

7272
SSAM_DEFINE_SYNC_REQUEST_N(ssam_bas_latch_lock, {
7373
.target_category = SSAM_SSH_TC_BAS,
74-
.target_id = 0x01,
74+
.target_id = SSAM_SSH_TID_SAM,
7575
.command_id = 0x06,
7676
.instance_id = 0x00,
7777
});
7878

7979
SSAM_DEFINE_SYNC_REQUEST_N(ssam_bas_latch_unlock, {
8080
.target_category = SSAM_SSH_TC_BAS,
81-
.target_id = 0x01,
81+
.target_id = SSAM_SSH_TID_SAM,
8282
.command_id = 0x07,
8383
.instance_id = 0x00,
8484
});
8585

8686
SSAM_DEFINE_SYNC_REQUEST_N(ssam_bas_latch_request, {
8787
.target_category = SSAM_SSH_TC_BAS,
88-
.target_id = 0x01,
88+
.target_id = SSAM_SSH_TID_SAM,
8989
.command_id = 0x08,
9090
.instance_id = 0x00,
9191
});
9292

9393
SSAM_DEFINE_SYNC_REQUEST_N(ssam_bas_latch_confirm, {
9494
.target_category = SSAM_SSH_TC_BAS,
95-
.target_id = 0x01,
95+
.target_id = SSAM_SSH_TID_SAM,
9696
.command_id = 0x09,
9797
.instance_id = 0x00,
9898
});
9999

100100
SSAM_DEFINE_SYNC_REQUEST_N(ssam_bas_latch_heartbeat, {
101101
.target_category = SSAM_SSH_TC_BAS,
102-
.target_id = 0x01,
102+
.target_id = SSAM_SSH_TID_SAM,
103103
.command_id = 0x0a,
104104
.instance_id = 0x00,
105105
});
106106

107107
SSAM_DEFINE_SYNC_REQUEST_N(ssam_bas_latch_cancel, {
108108
.target_category = SSAM_SSH_TC_BAS,
109-
.target_id = 0x01,
109+
.target_id = SSAM_SSH_TID_SAM,
110110
.command_id = 0x0b,
111111
.instance_id = 0x00,
112112
});
113113

114114
SSAM_DEFINE_SYNC_REQUEST_R(ssam_bas_get_base, struct ssam_bas_base_info, {
115115
.target_category = SSAM_SSH_TC_BAS,
116-
.target_id = 0x01,
116+
.target_id = SSAM_SSH_TID_SAM,
117117
.command_id = 0x0c,
118118
.instance_id = 0x00,
119119
});
120120

121121
SSAM_DEFINE_SYNC_REQUEST_R(ssam_bas_get_device_mode, u8, {
122122
.target_category = SSAM_SSH_TC_BAS,
123-
.target_id = 0x01,
123+
.target_id = SSAM_SSH_TID_SAM,
124124
.command_id = 0x0d,
125125
.instance_id = 0x00,
126126
});
127127

128128
SSAM_DEFINE_SYNC_REQUEST_R(ssam_bas_get_latch_status, u8, {
129129
.target_category = SSAM_SSH_TC_BAS,
130-
.target_id = 0x01,
130+
.target_id = SSAM_SSH_TID_SAM,
131131
.command_id = 0x11,
132132
.instance_id = 0x00,
133133
});

0 commit comments

Comments
 (0)