summaryrefslogtreecommitdiff
path: root/drivers/led/snled27351.h
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-10-30 08:39:26 +1000
committerGitHub <noreply@github.com>2023-10-30 09:39:26 +1100
commit17ccf3521bc9623e29f1f6febd167c3886f37408 (patch)
tree60a0226e5ae8d8787e8d40a00fb5314e5b65494b /drivers/led/snled27351.h
parentc667da019078442ff0fd9a4ca33ad09b627672f2 (diff)
Add `_LED_COUNT` defines to LED drivers (#22309)
Diffstat (limited to 'drivers/led/snled27351.h')
-rw-r--r--drivers/led/snled27351.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/led/snled27351.h b/drivers/led/snled27351.h
index 59d56855f3..e92ca71799 100644
--- a/drivers/led/snled27351.h
+++ b/drivers/led/snled27351.h
@@ -71,6 +71,10 @@
#define SNLED27351_I2C_ADDRESS_SDA 0x76
#define SNLED27351_I2C_ADDRESS_VDDIO 0x77
+#if defined(RGB_MATRIX_SNLED27351)
+# define SNLED27351_LED_COUNT RGB_MATRIX_LED_COUNT
+#endif
+
typedef struct snled27351_led_t {
uint8_t driver : 2;
uint8_t r;