[PATCH 1/3] soc: renesas: r9a09g057-sys: Mark rzv2h_sys_init_data as __initconst

Prabhakar posted 3 patches 1 month ago
[PATCH 1/3] soc: renesas: r9a09g057-sys: Mark rzv2h_sys_init_data as __initconst
Posted by Prabhakar 1 month ago
From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Annotate rzv2h_sys_init_data with __initconst as it is only used during
initialization.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 drivers/soc/renesas/r9a09g057-sys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/renesas/r9a09g057-sys.c b/drivers/soc/renesas/r9a09g057-sys.c
index 827c718ac7c5..f3e054206acb 100644
--- a/drivers/soc/renesas/r9a09g057-sys.c
+++ b/drivers/soc/renesas/r9a09g057-sys.c
@@ -161,7 +161,7 @@ static bool rzv2h_regmap_writeable_reg(struct device *dev, unsigned int reg)
 	}
 }
 
-const struct rz_sysc_init_data rzv2h_sys_init_data = {
+const struct rz_sysc_init_data rzv2h_sys_init_data __initconst = {
 	.soc_id_init_data = &rzv2h_sys_soc_id_init_data,
 	.readable_reg = rzv2h_regmap_readable_reg,
 	.writeable_reg = rzv2h_regmap_writeable_reg,
-- 
2.53.0
Re: [PATCH 1/3] soc: renesas: r9a09g057-sys: Mark rzv2h_sys_init_data as __initconst
Posted by Claudiu Beznea 3 weeks, 3 days ago

On 3/9/26 18:59, Prabhakar wrote:
> From: Lad Prabhakar<prabhakar.mahadev-lad.rj@bp.renesas.com>
> 
> Annotate rzv2h_sys_init_data with __initconst as it is only used during
> initialization.
> 
> Signed-off-by: Lad Prabhakar<prabhakar.mahadev-lad.rj@bp.renesas.com>

Reviewed-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Re: [PATCH 1/3] soc: renesas: r9a09g057-sys: Mark rzv2h_sys_init_data as __initconst
Posted by Geert Uytterhoeven 3 weeks, 5 days ago
On Mon, 9 Mar 2026 at 17:59, Prabhakar <prabhakar.csengg@gmail.com> wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
>
> Annotate rzv2h_sys_init_data with __initconst as it is only used during
> initialization.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v7.1.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds