summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorLen Bao <len.bao@gmx.us>2026-05-16 13:57:34 +0300
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-05-26 11:35:24 +0300
commitb12e12ee4138e30d786eda02223e87044c989bb1 (patch)
treed1de1258963643f2f5ea6603fff7f4d0b80ef490 /tools/lib/python/kdoc
parent820017813b818a9b6411e481fcc98f5260b6e6c1 (diff)
downloadlinux-b12e12ee4138e30d786eda02223e87044c989bb1.tar.xz
gpiolib: Mark gpio_devt, gpiolib_initialized and gpio_stub_drv as __ro_after_init
The 'gpio_devt' and 'gpiolib_initialized' variables are initialized only during the init phase in the 'gpiolib_dev_init' function and never changed. So, mark these as __ro_after_init. The 'gpio_stub_drv' variable is initialized only in the declaration and never changed. So, this variable could be 'const', but using the 'driver_register' and 'driver_unregister' functions discards the 'const' qualifier. Therefore, as an alternative, mark it as a __ro_after_init. Signed-off-by: Len Bao <len.bao@gmx.us> Reviewed-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/20260516105737.45174-1-len.bao@gmx.us Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions