From 0150b7b71f81864be3b29e1d2bf97e874b30e61e Mon Sep 17 00:00:00 2001 From: zvecr Date: Sun, 7 Dec 2025 14:36:03 +0000 Subject: [PATCH] clang-format-19 formatting fixes --- quantum/xap/handlers/core.c | 2 +- quantum/xap/xap.c | 4 ++-- tmk_core/protocol/chibios/usb_endpoints.c | 2 +- tmk_core/protocol/chibios/usb_main.c | 2 +- tmk_core/protocol/lufa/lufa.c | 2 +- tmk_core/protocol/usb_descriptor.h | 2 +- tmk_core/protocol/vusb/vusb.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/quantum/xap/handlers/core.c b/quantum/xap/handlers/core.c index 47fbaec1d2a..a6f0132c124 100644 --- a/quantum/xap/handlers/core.c +++ b/quantum/xap/handlers/core.c @@ -8,7 +8,7 @@ bool xap_execute_get_config_blob_chunk(xap_token_t token, uint16_t offset) { xap_route_qmk_config_blob_chunk_t ret = {0}; - bool get_config_blob_chunk(uint16_t offset, uint8_t * data, uint8_t data_len); + bool get_config_blob_chunk(uint16_t offset, uint8_t *data, uint8_t data_len); if (!get_config_blob_chunk(offset, (uint8_t *)&ret, sizeof(ret))) { return false; } diff --git a/quantum/xap/xap.c b/quantum/xap/xap.c index 491f27c8d77..883710802ca 100644 --- a/quantum/xap/xap.c +++ b/quantum/xap/xap.c @@ -78,7 +78,7 @@ typedef struct __attribute__((packed)) xap_route_flags_t { _Static_assert(TOTAL_XAP_ROUTE_TYPES <= (1 << (XAP_ROUTE_TYPE_BIT_COUNT)), "Number of XAP route types is too large for XAP_ROUTE_TYPE_BITS."); _Static_assert(sizeof(xap_route_flags_t) == 1, "xap_route_flags_t is not length of 1"); -typedef struct xap_route_t xap_route_t; +typedef struct xap_route_t xap_route_t; struct __attribute__((packed)) xap_route_t { const xap_route_flags_t flags; union { @@ -93,7 +93,7 @@ struct __attribute__((packed)) xap_route_t { // XAP_VALUE / XAP_CONST_MEM struct { - const void * const_data; + const void *const_data; const uint8_t const_data_len; }; }; diff --git a/tmk_core/protocol/chibios/usb_endpoints.c b/tmk_core/protocol/chibios/usb_endpoints.c index 2255bbc203e..ca692847d0f 100644 --- a/tmk_core/protocol/chibios/usb_endpoints.c +++ b/tmk_core/protocol/chibios/usb_endpoints.c @@ -84,7 +84,7 @@ usb_endpoint_in_t usb_endpoints_in[USB_ENDPOINT_IN_COUNT] = { # if defined(USB_ENDPOINTS_ARE_REORDERABLE) [USB_ENDPOINT_IN_XAP] = QMK_USB_ENDPOINT_IN_SHARED(USB_EP_MODE_TYPE_INTR, XAP_EPSIZE, XAP_IN_EPNUM, XAP_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(XAP_EPSIZE)), # else - [USB_ENDPOINT_IN_XAP] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_INTR, XAP_EPSIZE, XAP_IN_EPNUM, XAP_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(XAP_EPSIZE)), + [USB_ENDPOINT_IN_XAP] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_INTR, XAP_EPSIZE, XAP_IN_EPNUM, XAP_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(XAP_EPSIZE)), # endif #endif diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c index 234b4fc77c0..0adef90d384 100644 --- a/tmk_core/protocol/chibios/usb_main.c +++ b/tmk_core/protocol/chibios/usb_main.c @@ -571,7 +571,7 @@ void xap_broadcast(uint8_t type, const void *data, size_t length) { } void xap_receive_base(const void *data) { - const uint8_t * u8data = (const uint8_t *)data; + const uint8_t *u8data = (const uint8_t *)data; xap_request_header_t *header = (xap_request_header_t *)&u8data[0]; if (header->length <= (XAP_EPSIZE - sizeof(xap_request_header_t))) { xap_receive(header->token, &u8data[sizeof(xap_request_header_t)], header->length); diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index 957aa862670..dd04c85d7e0 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -246,7 +246,7 @@ void xap_broadcast(uint8_t type, const void *data, size_t length) { } void xap_receive_base(const void *data) { - const uint8_t * u8data = (const uint8_t *)data; + const uint8_t *u8data = (const uint8_t *)data; xap_request_header_t *header = (xap_request_header_t *)&u8data[0]; if (header->length <= (XAP_EPSIZE - sizeof(xap_request_header_t))) { xap_receive(header->token, &u8data[sizeof(xap_request_header_t)], header->length); diff --git a/tmk_core/protocol/usb_descriptor.h b/tmk_core/protocol/usb_descriptor.h index e3b2f5267ee..3307346232a 100644 --- a/tmk_core/protocol/usb_descriptor.h +++ b/tmk_core/protocol/usb_descriptor.h @@ -287,7 +287,7 @@ enum usb_endpoints { # if STM32_USB_USE_OTG1 # define XAP_OUT_EPNUM XAP_IN_EPNUM # else - XAP_OUT_EPNUM = NEXT_EPNUM, + XAP_OUT_EPNUM = NEXT_EPNUM, # endif #endif }; diff --git a/tmk_core/protocol/vusb/vusb.c b/tmk_core/protocol/vusb/vusb.c index 404ab26530d..409a52fd778 100644 --- a/tmk_core/protocol/vusb/vusb.c +++ b/tmk_core/protocol/vusb/vusb.c @@ -229,7 +229,7 @@ void xap_broadcast(uint8_t type, const void *data, size_t length) { } void xap_receive_base(const void *data) { - const uint8_t * u8data = (const uint8_t *)data; + const uint8_t *u8data = (const uint8_t *)data; xap_request_header_t *header = (xap_request_header_t *)&u8data[0]; if (header->length <= (XAP_BUFFER_SIZE - sizeof(xap_request_header_t))) { xap_receive(header->token, &u8data[sizeof(xap_request_header_t)], header->length);