diff options
author | Thierry Reding <treding@nvidia.com> | 2015-01-08 02:24:46 -0500 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-01-09 10:14:16 -0500 |
commit | 200d876a5ad136e9d92a107a8190dd8d017d76fc (patch) | |
tree | 02fe86609768bcbf6be2a54a421d63718bd9c927 /drivers/soc | |
parent | 24ef5745dafc2eaf287a0bb9ee9e4ff9a4f64108 (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.c | 8 |
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 | ||
57 | static void __iomem *fuse_base; | 57 | static void __iomem *fuse_base; |
58 | static struct clk *fuse_clk; | 58 | static struct clk *fuse_clk; |
59 | static struct tegra_fuse_info *fuse_info; | 59 | static const struct tegra_fuse_info *fuse_info; |
60 | 60 | ||
61 | u32 tegra30_fuse_readl(const unsigned int offset) | 61 | u32 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 | ||
81 | static struct tegra_fuse_info tegra30_info = { | 81 | static 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 | ||
87 | static struct tegra_fuse_info tegra114_info = { | 87 | static 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 | ||
92 | static struct tegra_fuse_info tegra124_info = { | 92 | static 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 | }; |