summaryrefslogtreecommitdiffstats
path: root/drivers/leds/rgb/leds-mt6370-rgb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/rgb/leds-mt6370-rgb.c')
-rw-r--r--drivers/leds/rgb/leds-mt6370-rgb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/rgb/leds-mt6370-rgb.c b/drivers/leds/rgb/leds-mt6370-rgb.c
index bb62431efe..448d0da118 100644
--- a/drivers/leds/rgb/leds-mt6370-rgb.c
+++ b/drivers/leds/rgb/leds-mt6370-rgb.c
@@ -153,7 +153,7 @@ struct mt6370_priv {
const struct mt6370_pdata *pdata;
unsigned int leds_count;
unsigned int leds_active;
- struct mt6370_led leds[];
+ struct mt6370_led leds[] __counted_by(leds_count);
};
static const struct reg_field common_reg_fields[F_MAX_FIELDS] = {