gpio-button-hotplug: use flexible array member
authorRosen Penev <rosenp@gmail.com>
Fri, 2 Aug 2024 21:30:32 +0000 (14:30 -0700)
committerRobert Marko <robimarko@gmail.com>
Mon, 4 Nov 2024 09:51:11 +0000 (10:51 +0100)
commit547feaca2ca7a8d1f81757d6905da3da127139d9
tree7c64849db3131b955b47fc4de12b48076950950a
parentd92306d020f3672d4fa3fc2e09235265a7547926
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>
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c