aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan <[email protected]>2024-04-06 01:43:52 +1100
committerGitHub <[email protected]>2024-04-05 15:43:52 +0100
commit9fa91ad4947293f75df4c0e85ea594b1529afbca (patch)
tree46fc994c899165e7a642cae166950d54d965976c
parenta14c03b96e75212d042621f4c68ccbecb7ee9901 (diff)
downloadqmk_firmware-9fa91ad4947293f75df4c0e85ea594b1529afbca.tar.gz
qmk_firmware-9fa91ad4947293f75df4c0e85ea594b1529afbca.zip
Rename `process_{led,rgb}_matrix()` (#23422)
-rw-r--r--quantum/keyboard.c4
-rw-r--r--quantum/led_matrix/led_matrix.c2
-rw-r--r--quantum/led_matrix/led_matrix.h2
-rw-r--r--quantum/rgb_matrix/rgb_matrix.c2
-rw-r--r--quantum/rgb_matrix/rgb_matrix.h2
5 files changed, 6 insertions, 6 deletions
diff --git a/quantum/keyboard.c b/quantum/keyboard.c
index 5aaa4b452f..df1dc1c3ee 100644
--- a/quantum/keyboard.c
+++ b/quantum/keyboard.c
@@ -500,10 +500,10 @@ void keyboard_init(void) {
*/
void switch_events(uint8_t row, uint8_t col, bool pressed) {
#if defined(LED_MATRIX_ENABLE)
- process_led_matrix(row, col, pressed);
+ led_matrix_handle_key_event(row, col, pressed);
#endif
#if defined(RGB_MATRIX_ENABLE)
- process_rgb_matrix(row, col, pressed);
+ rgb_matrix_handle_key_event(row, col, pressed);
#endif
}
diff --git a/quantum/led_matrix/led_matrix.c b/quantum/led_matrix/led_matrix.c
index c0fb4c810b..2ca62c6969 100644
--- a/quantum/led_matrix/led_matrix.c
+++ b/quantum/led_matrix/led_matrix.c
@@ -159,7 +159,7 @@ void led_matrix_set_value_all(uint8_t value) {
#endif
}
-void process_led_matrix(uint8_t row, uint8_t col, bool pressed) {
+void led_matrix_handle_key_event(uint8_t row, uint8_t col, bool pressed) {
#ifndef LED_MATRIX_SPLIT
if (!is_keyboard_master()) return;
#endif
diff --git a/quantum/led_matrix/led_matrix.h b/quantum/led_matrix/led_matrix.h
index 941d42aeca..9a13c3e52b 100644
--- a/quantum/led_matrix/led_matrix.h
+++ b/quantum/led_matrix/led_matrix.h
@@ -124,7 +124,7 @@ uint8_t led_matrix_map_row_column_to_led(uint8_t row, uint8_t column, uint8_t *l
void led_matrix_set_value(int index, uint8_t value);
void led_matrix_set_value_all(uint8_t value);
-void process_led_matrix(uint8_t row, uint8_t col, bool pressed);
+void led_matrix_handle_key_event(uint8_t row, uint8_t col, bool pressed);
void led_matrix_task(void);
diff --git a/quantum/rgb_matrix/rgb_matrix.c b/quantum/rgb_matrix/rgb_matrix.c
index 655aca1867..aaba00b457 100644
--- a/quantum/rgb_matrix/rgb_matrix.c
+++ b/quantum/rgb_matrix/rgb_matrix.c
@@ -156,7 +156,7 @@ void rgb_matrix_set_color_all(uint8_t red, uint8_t green, uint8_t blue) {
#endif
}
-void process_rgb_matrix(uint8_t row, uint8_t col, bool pressed) {
+void rgb_matrix_handle_key_event(uint8_t row, uint8_t col, bool pressed) {
#ifndef RGB_MATRIX_SPLIT
if (!is_keyboard_master()) return;
#endif
diff --git a/quantum/rgb_matrix/rgb_matrix.h b/quantum/rgb_matrix/rgb_matrix.h
index f8a6845e02..ceb3185d1a 100644
--- a/quantum/rgb_matrix/rgb_matrix.h
+++ b/quantum/rgb_matrix/rgb_matrix.h
@@ -148,7 +148,7 @@ uint8_t rgb_matrix_map_row_column_to_led(uint8_t row, uint8_t column, uint8_t *l
void rgb_matrix_set_color(int index, uint8_t red, uint8_t green, uint8_t blue);
void rgb_matrix_set_color_all(uint8_t red, uint8_t green, uint8_t blue);
-void process_rgb_matrix(uint8_t row, uint8_t col, bool pressed);
+void rgb_matrix_handle_key_event(uint8_t row, uint8_t col, bool pressed);
void rgb_matrix_task(void);