pinctrl: starfive: jh7110: use struct_size

Instead of an extra kcalloc, Use a flexible array member to combine
allocations. Saves a pointer in the struct.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Hal Feng <hal.feng@starfivetech.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
Rosen Penev 2026-04-24 18:40:29 -07:00 • committed by Linus Walleij
commit 87182ef0bf
2 changed files with 6 additions and 8 deletions