mirror of
https://github.com/riscv-software-src/opensbi
synced 2025-10-14 21:06:04 +01:00
lib: utils: Constify FDT driver definitions
The carray referencing these definitions assumes they are const. Fixes: 6a26726e08e4 ("lib/utils: reset: Add RPMI System Reset driver") Fixes: 13f55f33a1d3 ("lib: utils/suspend: Add RPMI system suspend driver") Fixes: 33ee9b8240fe ("lib: utils/hsm: Add RPMI HSM driver") Fixes: 591a98bdd549 ("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:
parent
f354400ebf
commit
38df94422b
@ -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,
|
.match_table = rpmi_cppc_match,
|
||||||
.init = rpmi_cppc_cold_init,
|
.init = rpmi_cppc_cold_init,
|
||||||
.experimental = true,
|
.experimental = true,
|
||||||
|
@ -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,
|
.match_table = rpmi_hsm_match,
|
||||||
.init = rpmi_hsm_cold_init,
|
.init = rpmi_hsm_cold_init,
|
||||||
.experimental = true,
|
.experimental = true,
|
||||||
|
@ -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,
|
.match_table = rpmi_reset_match,
|
||||||
.init = rpmi_reset_init,
|
.init = rpmi_reset_init,
|
||||||
.experimental = true,
|
.experimental = true,
|
||||||
|
@ -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,
|
.match_table = rpmi_suspend_match,
|
||||||
.init = rpmi_suspend_init,
|
.init = rpmi_suspend_init,
|
||||||
.experimental = true,
|
.experimental = true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user