]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: tegra186: allocate irqs with the main struct
authorRosen Penev <rosenp@gmail.com>
Mon, 9 Mar 2026 23:28:04 +0000 (16:28 -0700)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Wed, 11 Mar 2026 08:45:48 +0000 (09:45 +0100)
commitb4784adfe3aab3e74b5f7556834d87e416b666d0
treededc25ec7ea8b7026d4d1a264b12284cd09c3937
parent223d9a310c7bd785f08320de8d2b66a5af6a25e6
gpio: tegra186: allocate irqs with the main struct

Remove an extra kcalloc call by using a flexible array member.

Add __counted_by for extra runtime analysis.

Assign counting variable immediately after allocation as required by
__counted_by.

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