summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLen Bao <len.bao@gmx.us>2026-05-16 10:57:34 +0000
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-05-26 10:35:24 +0200
commitb12e12ee4138e30d786eda02223e87044c989bb1 (patch)
treed1de1258963643f2f5ea6603fff7f4d0b80ef490 /scripts
parent820017813b818a9b6411e481fcc98f5260b6e6c1 (diff)
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 'scripts')
0 files changed, 0 insertions, 0 deletions