]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: cs5535: use dynamically allocated priv struct
authorRosen Penev <rosenp@gmail.com>
Fri, 13 Mar 2026 00:12:09 +0000 (17:12 -0700)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 16 Mar 2026 09:11:02 +0000 (10:11 +0100)
commita6e53d05ab849779d55ca985566a1da7f22435b9
treeb03c67ff7c9c44fd02c08c0f8792cb142fbca869
parent3518fd4c780d4fa4c0e2cedd95c0f8bc5d8b457f
gpio: cs5535: use dynamically allocated priv struct

Static allocation is deprecated.

Remove the FIXME as gpiochip_add_data allows using gpiod_get_data.
No need for container_of.

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