mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
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:

committed by
Anup Patel

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,
|
||||
.init = rpmi_cppc_cold_init,
|
||||
.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,
|
||||
.init = rpmi_hsm_cold_init,
|
||||
.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,
|
||||
.init = rpmi_reset_init,
|
||||
.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,
|
||||
.init = rpmi_suspend_init,
|
||||
.experimental = true,
|
||||
|
Reference in New Issue
Block a user