diff options
| author | QMK Bot <hello@qmk.fm> | 2025-12-01 07:46:22 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-30 20:46:22 +0000 |
| commit | 43bbb5e99a2c552c127d30dfdf317fb70b143b40 (patch) | |
| tree | 4269efb53cae22f89e1653c2253255333d5b5813 | |
| parent | ee60542bd6aa8d96714516f7f42b02fbd8105fcb (diff) | |
[CI] Format code according to conventions (#25828)
Format code according to conventions
| -rw-r--r-- | drivers/painter/generic/qp_surface_internal.h | 2 | ||||
| -rw-r--r-- | drivers/painter/generic/qp_surface_rgb888.c | 4 | ||||
| -rw-r--r-- | quantum/led_matrix/led_matrix.c | 3 | ||||
| -rw-r--r-- | quantum/process_keycode/process_tap_dance.c | 6 | ||||
| -rw-r--r-- | quantum/rgb_matrix/rgb_matrix.c | 3 |
5 files changed, 8 insertions, 10 deletions
diff --git a/drivers/painter/generic/qp_surface_internal.h b/drivers/painter/generic/qp_surface_internal.h index e7a36550c1..0b4d32fa34 100644 --- a/drivers/painter/generic/qp_surface_internal.h +++ b/drivers/painter/generic/qp_surface_internal.h | |||
| @@ -45,7 +45,7 @@ typedef struct surface_painter_device_t { | |||
| 45 | void *buffer; | 45 | void *buffer; |
| 46 | uint8_t *u8buffer; | 46 | uint8_t *u8buffer; |
| 47 | uint16_t *u16buffer; | 47 | uint16_t *u16buffer; |
| 48 | rgb_t * rgbbuffer; | 48 | rgb_t *rgbbuffer; |
| 49 | }; | 49 | }; |
| 50 | 50 | ||
| 51 | // Manually manage the viewport for streaming pixel data to the display | 51 | // Manually manage the viewport for streaming pixel data to the display |
diff --git a/drivers/painter/generic/qp_surface_rgb888.c b/drivers/painter/generic/qp_surface_rgb888.c index 68c824b0e4..2c04136c36 100644 --- a/drivers/painter/generic/qp_surface_rgb888.c +++ b/drivers/painter/generic/qp_surface_rgb888.c | |||
| @@ -43,7 +43,7 @@ static inline void stream_pixdata_rgb888(surface_painter_device_t *surface, cons | |||
| 43 | 43 | ||
| 44 | // Stream pixel data to the current write position in GRAM | 44 | // Stream pixel data to the current write position in GRAM |
| 45 | static bool qp_surface_pixdata_rgb888(painter_device_t device, const void *pixel_data, uint32_t native_pixel_count) { | 45 | static bool qp_surface_pixdata_rgb888(painter_device_t device, const void *pixel_data, uint32_t native_pixel_count) { |
| 46 | painter_driver_t * driver = (painter_driver_t *)device; | 46 | painter_driver_t *driver = (painter_driver_t *)device; |
| 47 | surface_painter_device_t *surface = (surface_painter_device_t *)driver; | 47 | surface_painter_device_t *surface = (surface_painter_device_t *)driver; |
| 48 | stream_pixdata_rgb888(surface, (const rgb_t *)pixel_data, native_pixel_count); | 48 | stream_pixdata_rgb888(surface, (const rgb_t *)pixel_data, native_pixel_count); |
| 49 | return true; | 49 | return true; |
| @@ -84,7 +84,7 @@ static bool rgb888_target_pixdata_transfer(painter_driver_t *surface_driver, pai | |||
| 84 | // Housekeeping of the amount of pixels to transfer | 84 | // Housekeeping of the amount of pixels to transfer |
| 85 | uint32_t total_pixel_count = (8 * QUANTUM_PAINTER_PIXDATA_BUFFER_SIZE) / surface_driver->native_bits_per_pixel; | 85 | uint32_t total_pixel_count = (8 * QUANTUM_PAINTER_PIXDATA_BUFFER_SIZE) / surface_driver->native_bits_per_pixel; |
| 86 | uint32_t pixel_counter = 0; | 86 | uint32_t pixel_counter = 0; |
| 87 | rgb_t * target_buffer = (rgb_t *)qp_internal_global_pixdata_buffer; | 87 | rgb_t *target_buffer = (rgb_t *)qp_internal_global_pixdata_buffer; |
| 88 | 88 | ||
| 89 | // Fill the global pixdata area so that we can start transferring to the panel | 89 | // Fill the global pixdata area so that we can start transferring to the panel |
| 90 | for (uint16_t y = t; y <= b; ++y) { | 90 | for (uint16_t y = t; y <= b; ++y) { |
diff --git a/quantum/led_matrix/led_matrix.c b/quantum/led_matrix/led_matrix.c index 715d520d1c..a751f08c75 100644 --- a/quantum/led_matrix/led_matrix.c +++ b/quantum/led_matrix/led_matrix.c | |||
| @@ -71,8 +71,7 @@ last_hit_t g_last_hit_tracker; | |||
| 71 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED | 71 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED |
| 72 | 72 | ||
| 73 | #ifndef LED_MATRIX_FLAG_STEPS | 73 | #ifndef LED_MATRIX_FLAG_STEPS |
| 74 | # define LED_MATRIX_FLAG_STEPS \ | 74 | # define LED_MATRIX_FLAG_STEPS {LED_FLAG_ALL, LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER, LED_FLAG_NONE} |
| 75 | { LED_FLAG_ALL, LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER, LED_FLAG_NONE } | ||
| 76 | #endif | 75 | #endif |
| 77 | static const uint8_t led_matrix_flag_steps[] = LED_MATRIX_FLAG_STEPS; | 76 | static const uint8_t led_matrix_flag_steps[] = LED_MATRIX_FLAG_STEPS; |
| 78 | #define LED_MATRIX_FLAG_STEPS_COUNT ARRAY_SIZE(led_matrix_flag_steps) | 77 | #define LED_MATRIX_FLAG_STEPS_COUNT ARRAY_SIZE(led_matrix_flag_steps) |
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c index 36a94d8d28..399f71a827 100644 --- a/quantum/process_keycode/process_tap_dance.c +++ b/quantum/process_keycode/process_tap_dance.c | |||
| @@ -168,7 +168,7 @@ static inline void process_tap_dance_action_on_dance_finished(tap_dance_action_t | |||
| 168 | 168 | ||
| 169 | bool preprocess_tap_dance(uint16_t keycode, keyrecord_t *record) { | 169 | bool preprocess_tap_dance(uint16_t keycode, keyrecord_t *record) { |
| 170 | tap_dance_action_t *action; | 170 | tap_dance_action_t *action; |
| 171 | tap_dance_state_t * state; | 171 | tap_dance_state_t *state; |
| 172 | 172 | ||
| 173 | if (!record->event.pressed) return false; | 173 | if (!record->event.pressed) return false; |
| 174 | 174 | ||
| @@ -197,7 +197,7 @@ bool preprocess_tap_dance(uint16_t keycode, keyrecord_t *record) { | |||
| 197 | bool process_tap_dance(uint16_t keycode, keyrecord_t *record) { | 197 | bool process_tap_dance(uint16_t keycode, keyrecord_t *record) { |
| 198 | uint8_t td_index; | 198 | uint8_t td_index; |
| 199 | tap_dance_action_t *action; | 199 | tap_dance_action_t *action; |
| 200 | tap_dance_state_t * state; | 200 | tap_dance_state_t *state; |
| 201 | 201 | ||
| 202 | switch (keycode) { | 202 | switch (keycode) { |
| 203 | case QK_TAP_DANCE ... QK_TAP_DANCE_MAX: | 203 | case QK_TAP_DANCE ... QK_TAP_DANCE_MAX: |
| @@ -233,7 +233,7 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) { | |||
| 233 | 233 | ||
| 234 | void tap_dance_task(void) { | 234 | void tap_dance_task(void) { |
| 235 | tap_dance_action_t *action; | 235 | tap_dance_action_t *action; |
| 236 | tap_dance_state_t * state; | 236 | tap_dance_state_t *state; |
| 237 | 237 | ||
| 238 | if (!active_td || timer_elapsed(last_tap_time) <= GET_TAPPING_TERM(active_td, &(keyrecord_t){})) return; | 238 | if (!active_td || timer_elapsed(last_tap_time) <= GET_TAPPING_TERM(active_td, &(keyrecord_t){})) return; |
| 239 | 239 | ||
diff --git a/quantum/rgb_matrix/rgb_matrix.c b/quantum/rgb_matrix/rgb_matrix.c index f517190e35..97ae6a3c76 100644 --- a/quantum/rgb_matrix/rgb_matrix.c +++ b/quantum/rgb_matrix/rgb_matrix.c | |||
| @@ -73,8 +73,7 @@ last_hit_t g_last_hit_tracker; | |||
| 73 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 73 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
| 74 | 74 | ||
| 75 | #ifndef RGB_MATRIX_FLAG_STEPS | 75 | #ifndef RGB_MATRIX_FLAG_STEPS |
| 76 | # define RGB_MATRIX_FLAG_STEPS \ | 76 | # define RGB_MATRIX_FLAG_STEPS {LED_FLAG_ALL, LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER, LED_FLAG_UNDERGLOW, LED_FLAG_NONE} |
| 77 | { LED_FLAG_ALL, LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER, LED_FLAG_UNDERGLOW, LED_FLAG_NONE } | ||
| 78 | #endif | 77 | #endif |
| 79 | static const uint8_t rgb_matrix_flag_steps[] = RGB_MATRIX_FLAG_STEPS; | 78 | static const uint8_t rgb_matrix_flag_steps[] = RGB_MATRIX_FLAG_STEPS; |
| 80 | #define RGB_MATRIX_FLAG_STEPS_COUNT ARRAY_SIZE(rgb_matrix_flag_steps) | 79 | #define RGB_MATRIX_FLAG_STEPS_COUNT ARRAY_SIZE(rgb_matrix_flag_steps) |
