]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: bcm-kona: reduce the number of memory allocations
authorRosen Penev <rosenp@gmail.com>
Wed, 11 Mar 2026 00:34:31 +0000 (17:34 -0700)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Wed, 11 Mar 2026 08:43:23 +0000 (09:43 +0100)
commit0258fe8721f541bbd3949cac2f4971b98e1fe4ed
tree0c59fa9776b5efe8e55b29a75d6e76dba52d440b
parent8f0aecf2957e7dba78603544368846133bf6d22e
gpio: bcm-kona: reduce the number of memory allocations

Simplify allocation by using a flexible array member.

Use __counted_by for extra runtime analysis.

Shuffle some code as __counted_by requires the counting variable to be
set right after allocation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260311003431.31881-1-rosenp@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-bcm-kona.c