Skip to content

Commit 2b3ebcb

Browse files
committed
Remove some magic numbers.
1 parent 3fb7d91 commit 2b3ebcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

module/surface_sam_vhf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ static int vhf_hid_raw_request(struct hid_device *hid, unsigned char reportnum,
663663
}
664664

665665
struct surface_sam_ssh_rqst rqst = {
666-
.tc = 0x15,
666+
.tc = SAM_EVENT_VHF_TC,
667667
.pri = SURFACE_SAM_PRIORITY_HIGH,
668668
.iid = iid,
669669
.cid = cid,
@@ -730,7 +730,7 @@ static int vhf_event_handler(struct surface_sam_ssh_event *event, void *data)
730730
{
731731
struct vhf_evtctx *ctx = (struct vhf_evtctx *)data;
732732

733-
if (event->tc == 0x15 && (event->cid == 0x00 || event->cid == 0x03 || event->cid == 0x04)) {
733+
if (event->tc == SAM_EVENT_VHF_TC && (event->cid == 0x00 || event->cid == 0x03 || event->cid == 0x04)) {
734734
return hid_input_report(ctx->hid, HID_INPUT_REPORT, event->pld, event->len, 1);
735735
}
736736

0 commit comments

Comments
 (0)