summaryrefslogtreecommitdiff
path: root/drivers/issi
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-02-15 11:55:13 +1100
committerGitHub <noreply@github.com>2021-02-15 11:55:13 +1100
commit9ee12820197f38f6618b78f92481f3ffd2d8b7e5 (patch)
treed3a35c71242cbfff2868ce85d5348ccb8a68a489 /drivers/issi
parent6f44c2ec31a6aeacd9e90060a9670be03be372fe (diff)
LED Matrix: rename `LED_DRIVER_LED_COUNT` to `DRIVER_LED_TOTAL` (#11858)
Diffstat (limited to 'drivers/issi')
-rw-r--r--drivers/issi/is31fl3731-simple.c4
-rw-r--r--drivers/issi/is31fl3731-simple.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/issi/is31fl3731-simple.c b/drivers/issi/is31fl3731-simple.c
index 7c86841f1e..d295772f5e 100644
--- a/drivers/issi/is31fl3731-simple.c
+++ b/drivers/issi/is31fl3731-simple.c
@@ -186,7 +186,7 @@ void IS31FL3731_init(uint8_t addr) {
}
void IS31FL3731_set_value(int index, uint8_t value) {
- if (index >= 0 && index < LED_DRIVER_LED_COUNT) {
+ if (index >= 0 && index < DRIVER_LED_TOTAL) {
is31_led led = g_is31_leds[index];
// Subtract 0x24 to get the second index of g_pwm_buffer
@@ -196,7 +196,7 @@ void IS31FL3731_set_value(int index, uint8_t value) {
}
void IS31FL3731_set_value_all(uint8_t value) {
- for (int i = 0; i < LED_DRIVER_LED_COUNT; i++) {
+ for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
IS31FL3731_set_value(i, value);
}
}
diff --git a/drivers/issi/is31fl3731-simple.h b/drivers/issi/is31fl3731-simple.h
index 85b458753c..9665d6ed35 100644
--- a/drivers/issi/is31fl3731-simple.h
+++ b/drivers/issi/is31fl3731-simple.h
@@ -26,7 +26,7 @@ typedef struct is31_led {
uint8_t v;
} __attribute__((packed)) is31_led;
-extern const is31_led g_is31_leds[LED_DRIVER_LED_COUNT];
+extern const is31_led g_is31_leds[DRIVER_LED_TOTAL];
void IS31FL3731_init(uint8_t addr);
void IS31FL3731_write_register(uint8_t addr, uint8_t reg, uint8_t data);