aboutsummaryrefslogtreecommitdiff
path: root/plat/allwinner/sun50i_a64/sunxi_power.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2019-02-17 15:09:11 -0600
committerSamuel Holland <samuel@sholland.org>2019-02-17 20:13:40 -0600
commit508116827cfc763a5a8788608fb9848b25858c95 (patch)
tree229dff0d3523d8b509ca8f79ba82484365e70136 /plat/allwinner/sun50i_a64/sunxi_power.c
parent833216666fe0083d55a275886ca7b272e13dde6b (diff)
downloadtrusted-firmware-a-508116827cfc763a5a8788608fb9848b25858c95.tar.gz
allwinner: Constify data structures
This maximizes the amount of data protected by the MMU. Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'plat/allwinner/sun50i_a64/sunxi_power.c')
-rw-r--r--plat/allwinner/sun50i_a64/sunxi_power.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plat/allwinner/sun50i_a64/sunxi_power.c b/plat/allwinner/sun50i_a64/sunxi_power.c
index 706bfcecbe..b4d16a0683 100644
--- a/plat/allwinner/sun50i_a64/sunxi_power.c
+++ b/plat/allwinner/sun50i_a64/sunxi_power.c
@@ -175,7 +175,7 @@ static int fdt_get_regulator_millivolt(const void *fdt, int node)
#define NO_SPLIT 0xff
-struct axp_regulator {
+static const struct axp_regulator {
char *dt_name;
uint16_t min_volt;
uint16_t max_volt;
@@ -247,7 +247,7 @@ static void setup_axp803_rails(const void *fdt)
for (node = fdt_first_subnode(fdt, node);
node != -FDT_ERR_NOTFOUND;
node = fdt_next_subnode(fdt, node)) {
- struct axp_regulator *reg;
+ const struct axp_regulator *reg;
const char *name;
int length;