]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: sophgo: allocate power_cfg with priv
authorRosen Penev <rosenp@gmail.com>
Thu, 30 Apr 2026 22:04:09 +0000 (15:04 -0700)
committerLinus Walleij <linusw@kernel.org>
Wed, 6 May 2026 19:05:15 +0000 (21:05 +0200)
commit041e5ea2032d4e1b456e4df55e6e95587692f892
treedb61646073041976f3b7edd362dd55b92f5acfc0
parent13fffbc21e3019ff69bed077dc68bd6a614cf3c5
pinctrl: sophgo: allocate power_cfg with priv

Use a flexible array member to combine allocations and simplify code
slightly.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
[linusw@kernel.org: add a counter and __counted_by() annotation]
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/sophgo/pinctrl-cv18xx.c