Merge tag 'sh-for-v6.7-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/glaubit...
[linux-2.6-microblaze.git] / drivers / leds / leds-lm3697.c
index cfb8ac2..380d17a 100644 (file)
@@ -89,7 +89,7 @@ struct lm3697 {
        int bank_cfg;
        int num_banks;
 
-       struct lm3697_led leds[];
+       struct lm3697_led leds[] __counted_by(num_banks);
 };
 
 static const struct reg_default lm3697_reg_defs[] = {