summaryrefslogtreecommitdiffstats
path: root/quantum/backlight/backlight_software.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/backlight/backlight_software.c')
-rw-r--r--quantum/backlight/backlight_software.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/backlight/backlight_software.c b/quantum/backlight/backlight_software.c
index 3d412cab52..27ccbd2c9f 100644
--- a/quantum/backlight/backlight_software.c
+++ b/quantum/backlight/backlight_software.c
@@ -26,7 +26,7 @@ static const uint16_t backlight_duty_table[] = {
0b1110111011101110,
0b1111111111111111,
};
-#define backlight_duty_table_size (sizeof(backlight_duty_table) / sizeof(backlight_duty_table[0]))
+#define backlight_duty_table_size ARRAY_SIZE(backlight_duty_table)
// clang-format on