Skip to content

Commit 989f1ef

Browse files
committed
platform/surface: aggregator_tabletsw: 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 349ed98 commit 989f1ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/platform/surface/surface_aggregator_tabletsw.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static bool ssam_kip_cover_state_is_tablet_mode(struct ssam_tablet_sw *sw, u32 s
252252

253253
SSAM_DEFINE_SYNC_REQUEST_R(__ssam_kip_get_cover_state, u8, {
254254
.target_category = SSAM_SSH_TC_KIP,
255-
.target_id = 0x01,
255+
.target_id = SSAM_SSH_TID_SAM,
256256
.command_id = 0x1d,
257257
.instance_id = 0x00,
258258
});
@@ -376,7 +376,7 @@ static int ssam_pos_get_sources_list(struct ssam_tablet_sw *sw, struct ssam_sour
376376
int status;
377377

378378
rqst.target_category = SSAM_SSH_TC_POS;
379-
rqst.target_id = 0x01;
379+
rqst.target_id = SSAM_SSH_TID_SAM;
380380
rqst.command_id = 0x01;
381381
rqst.instance_id = 0x00;
382382
rqst.flags = SSAM_REQUEST_HAS_RESPONSE;
@@ -435,7 +435,7 @@ static int ssam_pos_get_source(struct ssam_tablet_sw *sw, u32 *source_id)
435435

436436
SSAM_DEFINE_SYNC_REQUEST_WR(__ssam_pos_get_posture_for_source, __le32, __le32, {
437437
.target_category = SSAM_SSH_TC_POS,
438-
.target_id = 0x01,
438+
.target_id = SSAM_SSH_TID_SAM,
439439
.command_id = 0x02,
440440
.instance_id = 0x00,
441441
});

0 commit comments

Comments
 (0)