diff options
author | Thierry Reding <treding@nvidia.com> | 2015-11-19 18:34:06 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-11-20 20:04:04 +0300 |
commit | 385f9adf625f706ea3db80f08d723bd0dd5d1b03 (patch) | |
tree | be4f39fd4fb0a3dd9755776f4db7f9aca5b430d6 /drivers/clk/tegra/clk-tegra124.c | |
parent | 8d99704fde54cd1df08065801e9b3196d88630f1 (diff) | |
download | linux-385f9adf625f706ea3db80f08d723bd0dd5d1b03.tar.xz |
clk: tegra: Constify pdiv-to-hw mappings
This is static data that is never modified, so make it const.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/clk/tegra/clk-tegra124.c')
-rw-r--r-- | drivers/clk/tegra/clk-tegra124.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/clk/tegra/clk-tegra124.c b/drivers/clk/tegra/clk-tegra124.c index d98bf688b3b0..156a753e902d 100644 --- a/drivers/clk/tegra/clk-tegra124.c +++ b/drivers/clk/tegra/clk-tegra124.c @@ -168,7 +168,7 @@ static struct div_nmp pllxc_nmp = { .divp_width = 4, }; -static struct pdiv_map pllxc_p[] = { +static const struct pdiv_map pllxc_p[] = { { .pdiv = 1, .hw_val = 0 }, { .pdiv = 2, .hw_val = 1 }, { .pdiv = 3, .hw_val = 2 }, @@ -264,7 +264,7 @@ static struct div_nmp pllcx_nmp = { .divp_width = 3, }; -static struct pdiv_map pllc_p[] = { +static const struct pdiv_map pllc_p[] = { { .pdiv = 1, .hw_val = 0 }, { .pdiv = 2, .hw_val = 1 }, { .pdiv = 3, .hw_val = 2 }, @@ -338,7 +338,7 @@ static struct div_nmp pllss_nmp = { .divp_width = 4, }; -static struct pdiv_map pll12g_ssd_esd_p[] = { +static const struct pdiv_map pll12g_ssd_esd_p[] = { { .pdiv = 1, .hw_val = 0 }, { .pdiv = 2, .hw_val = 1 }, { .pdiv = 3, .hw_val = 2 }, @@ -388,7 +388,7 @@ static struct tegra_clk_pll_params pll_c4_params = { .freq_table = pll_c4_freq_table, }; -static struct pdiv_map pllm_p[] = { +static const struct pdiv_map pllm_p[] = { { .pdiv = 1, .hw_val = 0 }, { .pdiv = 2, .hw_val = 1 }, { .pdiv = 0, .hw_val = 0 }, @@ -682,7 +682,7 @@ static struct tegra_clk_pll_params pll_dp_params = { .freq_table = pll_dp_freq_table, }; -static struct pdiv_map pllu_p[] = { +static const struct pdiv_map pllu_p[] = { { .pdiv = 1, .hw_val = 1 }, { .pdiv = 2, .hw_val = 0 }, { .pdiv = 0, .hw_val = 0 }, |