summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2025-12-01 06:25:13 +1100
committerGitHub <noreply@github.com>2025-11-30 19:25:13 +0000
commit6ed61c65dd66cdbb450a4920a69bae193ec73f15 (patch)
tree2d8cf989fba3622bbde9ea1d2da0f9bfe65edd95 /tmk_core
parent330a8597f8fb136374285d2b52a978e311b46ede (diff)
[CI] Format code according to conventions (#25827)
Format code according to conventions
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/protocol/chibios/usb_driver.c2
-rw-r--r--tmk_core/protocol/chibios/usb_endpoints.c6
-rw-r--r--tmk_core/protocol/chibios/usb_main.c2
-rw-r--r--tmk_core/protocol/usb_descriptor.h4
4 files changed, 7 insertions, 7 deletions
diff --git a/tmk_core/protocol/chibios/usb_driver.c b/tmk_core/protocol/chibios/usb_driver.c
index 7c3ce44687..8b471cba56 100644
--- a/tmk_core/protocol/chibios/usb_driver.c
+++ b/tmk_core/protocol/chibios/usb_driver.c
@@ -186,7 +186,7 @@ void usb_endpoint_out_configure_cb(usb_endpoint_out_t *endpoint) {
186void usb_endpoint_in_tx_complete_cb(USBDriver *usbp, usbep_t ep) { 186void usb_endpoint_in_tx_complete_cb(USBDriver *usbp, usbep_t ep) {
187 usb_endpoint_in_t *endpoint = usbp->in_params[ep - 1U]; 187 usb_endpoint_in_t *endpoint = usbp->in_params[ep - 1U];
188 size_t n; 188 size_t n;
189 uint8_t * buffer; 189 uint8_t *buffer;
190 190
191 if (endpoint == NULL) { 191 if (endpoint == NULL) {
192 return; 192 return;
diff --git a/tmk_core/protocol/chibios/usb_endpoints.c b/tmk_core/protocol/chibios/usb_endpoints.c
index 856df62426..00536845b2 100644
--- a/tmk_core/protocol/chibios/usb_endpoints.c
+++ b/tmk_core/protocol/chibios/usb_endpoints.c
@@ -68,7 +68,7 @@ usb_endpoint_in_t usb_endpoints_in[USB_ENDPOINT_IN_COUNT] = {
68# if defined(USB_ENDPOINTS_ARE_REORDERABLE) 68# if defined(USB_ENDPOINTS_ARE_REORDERABLE)
69 [USB_ENDPOINT_IN_CONSOLE] = QMK_USB_ENDPOINT_IN_SHARED(USB_EP_MODE_TYPE_INTR, CONSOLE_EPSIZE, CONSOLE_IN_EPNUM, CONSOLE_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(CONSOLE_EPSIZE)), 69 [USB_ENDPOINT_IN_CONSOLE] = QMK_USB_ENDPOINT_IN_SHARED(USB_EP_MODE_TYPE_INTR, CONSOLE_EPSIZE, CONSOLE_IN_EPNUM, CONSOLE_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(CONSOLE_EPSIZE)),
70# else 70# else
71 [USB_ENDPOINT_IN_CONSOLE] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_INTR, CONSOLE_EPSIZE, CONSOLE_IN_EPNUM, CONSOLE_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(CONSOLE_EPSIZE)), 71 [USB_ENDPOINT_IN_CONSOLE] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_INTR, CONSOLE_EPSIZE, CONSOLE_IN_EPNUM, CONSOLE_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(CONSOLE_EPSIZE)),
72# endif 72# endif
73#endif 73#endif
74 74
@@ -76,7 +76,7 @@ usb_endpoint_in_t usb_endpoints_in[USB_ENDPOINT_IN_COUNT] = {
76# if defined(USB_ENDPOINTS_ARE_REORDERABLE) 76# if defined(USB_ENDPOINTS_ARE_REORDERABLE)
77 [USB_ENDPOINT_IN_RAW] = QMK_USB_ENDPOINT_IN_SHARED(USB_EP_MODE_TYPE_INTR, RAW_EPSIZE, RAW_IN_EPNUM, RAW_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(RAW_EPSIZE)), 77 [USB_ENDPOINT_IN_RAW] = QMK_USB_ENDPOINT_IN_SHARED(USB_EP_MODE_TYPE_INTR, RAW_EPSIZE, RAW_IN_EPNUM, RAW_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(RAW_EPSIZE)),
78# else 78# else
79 [USB_ENDPOINT_IN_RAW] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_INTR, RAW_EPSIZE, RAW_IN_EPNUM, RAW_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(RAW_EPSIZE)), 79 [USB_ENDPOINT_IN_RAW] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_INTR, RAW_EPSIZE, RAW_IN_EPNUM, RAW_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(RAW_EPSIZE)),
80# endif 80# endif
81#endif 81#endif
82 82
@@ -84,7 +84,7 @@ usb_endpoint_in_t usb_endpoints_in[USB_ENDPOINT_IN_COUNT] = {
84# if defined(USB_ENDPOINTS_ARE_REORDERABLE) 84# if defined(USB_ENDPOINTS_ARE_REORDERABLE)
85 [USB_ENDPOINT_IN_MIDI] = QMK_USB_ENDPOINT_IN_SHARED(USB_EP_MODE_TYPE_BULK, MIDI_STREAM_EPSIZE, MIDI_STREAM_IN_EPNUM, MIDI_STREAM_IN_CAPACITY, NULL, NULL), 85 [USB_ENDPOINT_IN_MIDI] = QMK_USB_ENDPOINT_IN_SHARED(USB_EP_MODE_TYPE_BULK, MIDI_STREAM_EPSIZE, MIDI_STREAM_IN_EPNUM, MIDI_STREAM_IN_CAPACITY, NULL, NULL),
86# else 86# else
87 [USB_ENDPOINT_IN_MIDI] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_BULK, MIDI_STREAM_EPSIZE, MIDI_STREAM_IN_EPNUM, MIDI_STREAM_IN_CAPACITY, NULL, NULL), 87 [USB_ENDPOINT_IN_MIDI] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_BULK, MIDI_STREAM_EPSIZE, MIDI_STREAM_IN_EPNUM, MIDI_STREAM_IN_CAPACITY, NULL, NULL),
88# endif 88# endif
89#endif 89#endif
90 90
diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c
index b798a8d1cb..b8497684d6 100644
--- a/tmk_core/protocol/chibios/usb_main.c
+++ b/tmk_core/protocol/chibios/usb_main.c
@@ -80,7 +80,7 @@ static const USBDescriptor *usb_get_descriptor_cb(USBDriver *usbp, uint8_t dtype
80 80
81 static USBDescriptor descriptor; 81 static USBDescriptor descriptor;
82 descriptor.ud_string = NULL; 82 descriptor.ud_string = NULL;
83 descriptor.ud_size = get_usb_descriptor(setup->wValue.word, setup->wIndex, setup->wLength, (const void **const) & descriptor.ud_string); 83 descriptor.ud_size = get_usb_descriptor(setup->wValue.word, setup->wIndex, setup->wLength, (const void **const)&descriptor.ud_string);
84 84
85 if (descriptor.ud_string == NULL) { 85 if (descriptor.ud_string == NULL) {
86 return NULL; 86 return NULL;
diff --git a/tmk_core/protocol/usb_descriptor.h b/tmk_core/protocol/usb_descriptor.h
index 1de8c5ec88..366a380fdd 100644
--- a/tmk_core/protocol/usb_descriptor.h
+++ b/tmk_core/protocol/usb_descriptor.h
@@ -223,7 +223,7 @@ enum usb_endpoints {
223# ifdef USB_ENDPOINTS_ARE_REORDERABLE 223# ifdef USB_ENDPOINTS_ARE_REORDERABLE
224# define RAW_OUT_EPNUM RAW_IN_EPNUM 224# define RAW_OUT_EPNUM RAW_IN_EPNUM
225# else 225# else
226 RAW_OUT_EPNUM = NEXT_EPNUM, 226 RAW_OUT_EPNUM = NEXT_EPNUM,
227# endif 227# endif
228#endif 228#endif
229 229
@@ -250,7 +250,7 @@ enum usb_endpoints {
250# ifdef USB_ENDPOINTS_ARE_REORDERABLE 250# ifdef USB_ENDPOINTS_ARE_REORDERABLE
251# define CDC_OUT_EPNUM CDC_IN_EPNUM 251# define CDC_OUT_EPNUM CDC_IN_EPNUM
252# else 252# else
253 CDC_OUT_EPNUM = NEXT_EPNUM, 253 CDC_OUT_EPNUM = NEXT_EPNUM,
254# endif 254# endif
255#endif 255#endif
256 256