summaryrefslogtreecommitdiff
path: root/drivers/extcon/devres.c
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-05-27 13:23:17 -0700
committerGeert Uytterhoeven <geert+renesas@glider.be>2026-06-30 12:03:56 +0200
commit5a653cedec948423fc8a0180c90b8d05c2239d9d (patch)
treefbe07eb930c967b42bbdcf8bbf92656b513d406b /drivers/extcon/devres.c
parentdc59e4fea9d83f03bad6bddf3fa2e52491777482 (diff)
downloadlinux-next-5a653cedec948423fc8a0180c90b8d05c2239d9d.tar.gz
linux-next-5a653cedec948423fc8a0180c90b8d05c2239d9d.zip
pinctrl: renesas: rza2: Embed pins in the priv struct
Turn the separately allocated pinctrl_pin_desc array into a flexible array member of struct rza2_pinctrl_priv, annotated with __counted_by(npins). Compute the pin count before allocation so struct_size() can size the combined object, and the two allocations can be collapsed into one. Change npins to unsigned int to avoid potential overflow/underflow errors. Assisted-by: Claude:Opus-4.7 Signed-off-by: Rosen Penev <rosenp@gmail.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20260527202317.5347-1-rosenp@gmail.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'drivers/extcon/devres.c')
0 files changed, 0 insertions, 0 deletions