lib: utils: Constify FDT driver definitions

The carray referencing these definitions assumes they are const.

Fixes: 6a26726e08 ("lib/utils: reset: Add RPMI System Reset driver")
Fixes: 13f55f33a1 ("lib: utils/suspend: Add RPMI system suspend driver")
Fixes: 33ee9b8240 ("lib: utils/hsm: Add RPMI HSM driver")
Fixes: 591a98bdd5 ("lib: utils/cppc: Add RPMI CPPC driver")
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Samuel Holland
2025-02-13 14:24:46 -08:00
committed by Anup Patel
parent f354400ebf
commit 38df94422b
4 changed files with 4 additions and 4 deletions

View File

@@ -367,7 +367,7 @@ static const struct fdt_match rpmi_cppc_match[] = {
{},
};
struct fdt_driver fdt_cppc_rpmi = {
const struct fdt_driver fdt_cppc_rpmi = {
.match_table = rpmi_cppc_match,
.init = rpmi_cppc_cold_init,
.experimental = true,

View File

@@ -356,7 +356,7 @@ static const struct fdt_match rpmi_hsm_match[] = {
{},
};
struct fdt_driver fdt_hsm_rpmi = {
const struct fdt_driver fdt_hsm_rpmi = {
.match_table = rpmi_hsm_match,
.init = rpmi_hsm_cold_init,
.experimental = true,

View File

@@ -135,7 +135,7 @@ static const struct fdt_match rpmi_reset_match[] = {
{},
};
struct fdt_driver fdt_reset_rpmi = {
const struct fdt_driver fdt_reset_rpmi = {
.match_table = rpmi_reset_match,
.init = rpmi_reset_init,
.experimental = true,

View File

@@ -132,7 +132,7 @@ static const struct fdt_match rpmi_suspend_match[] = {
{},
};
struct fdt_driver fdt_suspend_rpmi = {
const struct fdt_driver fdt_suspend_rpmi = {
.match_table = rpmi_suspend_match,
.init = rpmi_suspend_init,
.experimental = true,