summaryrefslogtreecommitdiffstats
path: root/drivers/input/input-leds.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/input-leds.c')
-rw-r--r--drivers/input/input-leds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/input-leds.c b/drivers/input/input-leds.c
index 0b11990ade..0e935914bc 100644
--- a/drivers/input/input-leds.c
+++ b/drivers/input/input-leds.c
@@ -44,7 +44,7 @@ struct input_led {
struct input_leds {
struct input_handle handle;
unsigned int num_leds;
- struct input_led leds[];
+ struct input_led leds[] __counted_by(num_leds);
};
static enum led_brightness input_leds_brightness_get(struct led_classdev *cdev)