aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-01-08 02:24:46 -0500
committerThierry Reding <treding@nvidia.com>2015-01-09 10:14:16 -0500
commit200d876a5ad136e9d92a107a8190dd8d017d76fc (patch)
tree02fe86609768bcbf6be2a54a421d63718bd9c927 /drivers/soc
parent24ef5745dafc2eaf287a0bb9ee9e4ff9a4f64108 (diff)
soc/tegra: fuse: Constify tegra_fuse_info structures
These structures contain read-only data and are never modified, so they can be const. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/tegra/fuse/fuse-tegra30.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/soc/tegra/fuse/fuse-tegra30.c b/drivers/soc/tegra/fuse/fuse-tegra30.c
index 8646fa920d8d..d1a4290cda5c 100644
--- a/drivers/soc/tegra/fuse/fuse-tegra30.c
+++ b/drivers/soc/tegra/fuse/fuse-tegra30.c
@@ -56,7 +56,7 @@ struct tegra_fuse_info {
56 56
57static void __iomem *fuse_base; 57static void __iomem *fuse_base;
58static struct clk *fuse_clk; 58static struct clk *fuse_clk;
59static struct tegra_fuse_info *fuse_info; 59static const struct tegra_fuse_info *fuse_info;
60 60
61u32 tegra30_fuse_readl(const unsigned int offset) 61u32 tegra30_fuse_readl(const unsigned int offset)
62{ 62{
@@ -78,18 +78,18 @@ u32 tegra30_fuse_readl(const unsigned int offset)
78 return val; 78 return val;
79} 79}
80 80
81static struct tegra_fuse_info tegra30_info = { 81static const struct tegra_fuse_info tegra30_info = {
82 .size = 0x2a4, 82 .size = 0x2a4,
83 .spare_bit = 0x144, 83 .spare_bit = 0x144,
84 .speedo_idx = SPEEDO_TEGRA30, 84 .speedo_idx = SPEEDO_TEGRA30,
85}; 85};
86 86
87static struct tegra_fuse_info tegra114_info = { 87static const struct tegra_fuse_info tegra114_info = {
88 .size = 0x2a0, 88 .size = 0x2a0,
89 .speedo_idx = SPEEDO_TEGRA114, 89 .speedo_idx = SPEEDO_TEGRA114,
90}; 90};
91 91
92static struct tegra_fuse_info tegra124_info = { 92static const struct tegra_fuse_info tegra124_info = {
93 .size = 0x300, 93 .size = 0x300,
94 .speedo_idx = SPEEDO_TEGRA124, 94 .speedo_idx = SPEEDO_TEGRA124,
95}; 95};