diff options
author | Ryan <fauxpark@gmail.com> | 2023-10-30 08:39:26 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-30 09:39:26 +1100 |
commit | 17ccf3521bc9623e29f1f6febd167c3886f37408 (patch) | |
tree | 60a0226e5ae8d8787e8d40a00fb5314e5b65494b /drivers/led/snled27351-simple.h | |
parent | c667da019078442ff0fd9a4ca33ad09b627672f2 (diff) |
Add `_LED_COUNT` defines to LED drivers (#22309)
Diffstat (limited to 'drivers/led/snled27351-simple.h')
-rw-r--r-- | drivers/led/snled27351-simple.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/led/snled27351-simple.h b/drivers/led/snled27351-simple.h index 999b70f891..e8238071a5 100644 --- a/drivers/led/snled27351-simple.h +++ b/drivers/led/snled27351-simple.h @@ -59,6 +59,10 @@ #define SNLED27351_I2C_ADDRESS_SDA 0x76 #define SNLED27351_I2C_ADDRESS_VDDIO 0x77 +#if defined(LED_MATRIX_SNLED27351) +# define SNLED27351_LED_COUNT LED_MATRIX_LED_COUNT +#endif + typedef struct snled27351_led_t { uint8_t driver : 2; uint8_t v; |