gpio-button-hotplug: use flexible array member
zero length arrays are deprecated. Fixes coccinelle warning: WARNING use flexible-array member instead Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16848 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
37784c48e9
commit
c6a6aac763
|
@ -302,7 +302,7 @@ struct gpio_keys_button_dev {
|
|||
|
||||
struct device *dev;
|
||||
struct gpio_keys_platform_data *pdata;
|
||||
struct gpio_keys_button_data data[0];
|
||||
struct gpio_keys_button_data data[];
|
||||
};
|
||||
|
||||
static void gpio_keys_polled_queue_work(struct gpio_keys_button_dev *bdev)
|
||||
|
|
Loading…
Reference in New Issue