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:50:44 +0000 (10:50 +0100)
commitc6a6aac763aa320a3ed810041e0f1dc7ab77b30f
tree416190d18e64b15ccdc790ed1d32b75da629e8e5
parent37784c48e93c663dafc99454c24bebf4e258556f
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