diff options
author | Thierry Reding <treding@nvidia.com> | 2015-01-08 08:24:46 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-01-09 16:14:16 +0100 |
commit | 200d876a5ad136e9d92a107a8190dd8d017d76fc (patch) | |
tree | 02fe86609768bcbf6be2a54a421d63718bd9c927 /drivers/soc | |
parent | 24ef5745dafc2eaf287a0bb9ee9e4ff9a4f64108 (diff) | |
download | op-kernel-dev-200d876a5ad136e9d92a107a8190dd8d017d76fc.zip op-kernel-dev-200d876a5ad136e9d92a107a8190dd8d017d76fc.tar.gz |
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 8646fa9..d1a4290 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 { static void __iomem *fuse_base; static struct clk *fuse_clk; -static struct tegra_fuse_info *fuse_info; +static const struct tegra_fuse_info *fuse_info; u32 tegra30_fuse_readl(const unsigned int offset) { @@ -78,18 +78,18 @@ u32 tegra30_fuse_readl(const unsigned int offset) return val; } -static struct tegra_fuse_info tegra30_info = { +static const struct tegra_fuse_info tegra30_info = { .size = 0x2a4, .spare_bit = 0x144, .speedo_idx = SPEEDO_TEGRA30, }; -static struct tegra_fuse_info tegra114_info = { +static const struct tegra_fuse_info tegra114_info = { .size = 0x2a0, .speedo_idx = SPEEDO_TEGRA114, }; -static struct tegra_fuse_info tegra124_info = { +static const struct tegra_fuse_info tegra124_info = { .size = 0x300, .speedo_idx = SPEEDO_TEGRA124, }; |