pinctrl: apple-gpio: fix flexible_array.cocci warnings
authorkernel test robot <lkp@intel.com>
Sat, 27 Nov 2021 18:01:04 +0000 (19:01 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 2 Dec 2021 01:34:45 +0000 (02:34 +0100)
commitf3e3e63796cc599024b03fe67d788630a5923ae5
tree610450a170cea0932a581fe562a5f3540a3f30cc
parent9f9d17c228c89e38ed612500126daf626270be9a
pinctrl: apple-gpio: fix flexible_array.cocci warnings

Zero-length and one-element arrays are deprecated, see
Documentation/process/deprecated.rst
Flexible-array members should be used instead.

Generated by: scripts/coccinelle/misc/flexible_array.cocci

CC: Joey Gouly <joey.gouly@arm.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
Link: https://lore.kernel.org/r/alpine.DEB.2.22.394.2111271859250.2864@hadrien
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-apple-gpio.c