Skip to content

Commit

Permalink
RHEL-69075: broken style fix for vioinput driver
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Chulak <[email protected]>
  • Loading branch information
Jedoku committed Jan 8, 2025
1 parent a3e796e commit 9576343
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vioinput/sys/Hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
// HID descriptor based on this structure is returned by the mini driver in response
// to IOCTL_HID_GET_DEVICE_DESCRIPTOR.
//
// clang-format off
static const HID_DESCRIPTOR G_DefaultHidDescriptor =
{
0x09, // length of HID descriptor
Expand All @@ -54,6 +55,7 @@ static const HID_DESCRIPTOR G_DefaultHidDescriptor =
0x0000 // total length of report descriptor
}
};
// clang-format on

VOID EvtIoDeviceControl(WDFQUEUE Queue,
WDFREQUEST Request,
Expand Down
2 changes: 2 additions & 0 deletions vioinput/sys/HidTablet.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,12 +866,14 @@ HIDTabletProbe(PINPUT_DEVICE pContext,
TraceEvents(TRACE_LEVEL_INFORMATION, DBG_INIT, "Created HID tablet report descriptor\n");

// calculate the tablet HID report size
// clang-format off
pTabletDesc->Common.cbHidReportSize =
1 + // report ID
sizeof(INPUT_CLASS_TABLET_SLOT) * pTabletDesc->uMaxContacts + // max contacts * per-contact packet. See INPUT_CLASS_TABLET_SLOT and INPUT_CLASS_TABLET for layout details.
1 + // Actual contact count
(pTabletDesc->bMscTs ? sizeof(LONG) : 0) // Scan time
;
// clang-format on

// register the tablet class
status = RegisterClass(pContext, &pTabletDesc->Common);
Expand Down
2 changes: 2 additions & 0 deletions vioinput/sys/KeyMap.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "precomp.h"
#include "Hid.h"

// clang-format off
static const ULONG ReportCodeToUsageCodeTable[] =
{
/* KEY_RESERVED */ 0x00,
Expand Down Expand Up @@ -650,6 +651,7 @@ static const ULONG ReportCodeToUsageCodeTable[] =
/* KEY_KBDINPUTASSIST_ACCEPT */ KEY_TYPE_CONSUMER | 0x2CB,
/* KEY_KBDINPUTASSIST_CANCEL */ KEY_TYPE_CONSUMER | 0x2CC,
};
// clang-format on

ULONG
HIDKeyboardEventCodeToUsageCode(USHORT uEventCode)
Expand Down

0 comments on commit 9576343

Please sign in to comment.