linux/drivers/pmdomain/amlogic
Christophe JAILLET 3b2ded2305 pmdomain: amlogic: Constify struct meson_secure_pwrc_domain_data
'struct meson_secure_pwrc_domain_data' are not modified in these drivers.

Constifying these structures moves some data to a read-only section, so
increases overall security.

On a x86_64, with allmodconfig:
Before:
======
   text	   data	    bss	    dec	    hex	filename
   9248	    408	      0	   9656	   25b8	drivers/pmdomain/amlogic/meson-secure-pwrc.o

After:
=====
   text	   data	    bss	    dec	    hex	filename
   9344	    304	      0	   9648	   25b0	drivers/pmdomain/amlogic/meson-secure-pwrc.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/e71abd8d75dd842690e5a11e38037bcf5feac189.1751816732.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2025-07-09 13:10:53 +02:00
..
Kconfig pmdomain: amlogic: remove obsolete vpu domain driver 2024-08-05 12:48:42 +02:00
Makefile pmdomain: amlogic: remove obsolete vpu domain driver 2024-08-05 12:48:42 +02:00
meson-ee-pwrc.c pmdomain: amlogic: Constify some structures 2025-05-05 10:22:21 +02:00
meson-secure-pwrc.c pmdomain: amlogic: Constify struct meson_secure_pwrc_domain_data 2025-07-09 13:10:53 +02:00