From c7a65558ee70310b607393c4a69f1ef953f7b138 Mon Sep 17 00:00:00 2001 From: jack <0x6A73@pm.me> Date: Sun, 25 Sep 2022 03:32:51 -0600 Subject: [PATCH] Remove lingering `DRIVER_LED_TOTAL` references (#18475) --- keyboards/drop/sense75/config.h | 2 +- keyboards/drop/sense75/sense75.c | 2 +- keyboards/keychron/q0/rev_0130/config.h | 2 +- keyboards/keychron/q0/rev_0130/rev_0130.c | 2 +- keyboards/saevus/cor_tkl/config.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/keyboards/drop/sense75/config.h b/keyboards/drop/sense75/config.h index b0196d0c44e8fa71be05c62c2e51773830c61e27..53fea6b103db7856eb69134f21cef5f5dae2ec45 100644 --- a/keyboards/drop/sense75/config.h +++ b/keyboards/drop/sense75/config.h @@ -13,7 +13,7 @@ # define DRIVER_ADDR_1 0b1010000 # define DRIVER_ADDR_2 0b1011111 # define DRIVER_COUNT 2 -# define DRIVER_LED_TOTAL (58 + 53) +# define RGB_MATRIX_LED_COUNT (58 + 53) # define ISSI_PWM_FREQUENCY 0b010 // 26k # define RGB_DISABLE_TIMEOUT 0 diff --git a/keyboards/drop/sense75/sense75.c b/keyboards/drop/sense75/sense75.c index 8087f5c72e7b4ce9f91477b53985323030756d5a..a8cb28b054c9e96f179d87248def310aa5654346 100644 --- a/keyboards/drop/sense75/sense75.c +++ b/keyboards/drop/sense75/sense75.c @@ -3,7 +3,7 @@ #include "rgb_matrix.h" #ifdef RGB_MATRIX_ENABLE -const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { +const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = { // top underglow sd2-sd17 { 0, B_2, A_2, C_2 }, { 0, B_3, A_3, C_3 }, diff --git a/keyboards/keychron/q0/rev_0130/config.h b/keyboards/keychron/q0/rev_0130/config.h index e7fabed664d9e5653623cdf8774a6f8991ebad30..126d636589603dbb4ea97d31f354d88737fe3ab2 100644 --- a/keyboards/keychron/q0/rev_0130/config.h +++ b/keyboards/keychron/q0/rev_0130/config.h @@ -18,7 +18,7 @@ /* RGB Matrix Configuration */ #define DRIVER_1_LED_TOTAL 21 -#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL +#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL /* Enable num-lock LED */ #define NUM_LOCK_LED_INDEX 4 diff --git a/keyboards/keychron/q0/rev_0130/rev_0130.c b/keyboards/keychron/q0/rev_0130/rev_0130.c index 468e3cf04f26071c533b84c5d7ed55123c5b3440..2803239b53d41574fd9c4c67de0b64ae5f31ed33 100644 --- a/keyboards/keychron/q0/rev_0130/rev_0130.c +++ b/keyboards/keychron/q0/rev_0130/rev_0130.c @@ -18,7 +18,7 @@ #ifdef RGB_MATRIX_ENABLE -const ckled2001_led PROGMEM g_ckled2001_leds[DRIVER_LED_TOTAL] = { +const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = { /* Refer to CKLED manual for these locations * driver * | R location diff --git a/keyboards/saevus/cor_tkl/config.h b/keyboards/saevus/cor_tkl/config.h index 449f2da113f90ab1a14b2b78a0f21f57152f7d90..6be72c64951b99e0bede9e698529d6e68a30f743 100644 --- a/keyboards/saevus/cor_tkl/config.h +++ b/keyboards/saevus/cor_tkl/config.h @@ -21,6 +21,6 @@ along with this program. If not, see . /* RGB Matrix setup */ #define RGB_DI_PIN GP19 -#define DRIVER_LED_TOTAL 2 +#define RGB_MATRIX_LED_COUNT 2 #define RGBLED_NUM 2 #define WS2812_PIO_USE_PIO1 // Force the usage of PIO1 peripheral, by default the WS2812 implementation uses the PIO0 peripheral