Skip to content

Commit cb2b583

Browse files
committed
memory: tegra: Properly spell "tegra"
Rename all occurrences of "terga" to "tegra". It's an easy typo to make and a difficult one to spot. Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
1 parent f2222a9 commit cb2b583

7 files changed

Lines changed: 29 additions & 29 deletions

File tree

‎drivers/memory/tegra/mc.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static const struct of_device_id tegra_mc_of_match[] = {
7474
};
7575
MODULE_DEVICE_TABLE(of, tegra_mc_of_match);
7676

77-
static int terga_mc_block_dma_common(struct tegra_mc *mc,
77+
static int tegra_mc_block_dma_common(struct tegra_mc *mc,
7878
const struct tegra_mc_reset *rst)
7979
{
8080
unsigned long flags;
@@ -90,13 +90,13 @@ static int terga_mc_block_dma_common(struct tegra_mc *mc,
9090
return 0;
9191
}
9292

93-
static bool terga_mc_dma_idling_common(struct tegra_mc *mc,
93+
static bool tegra_mc_dma_idling_common(struct tegra_mc *mc,
9494
const struct tegra_mc_reset *rst)
9595
{
9696
return (mc_readl(mc, rst->status) & BIT(rst->bit)) != 0;
9797
}
9898

99-
static int terga_mc_unblock_dma_common(struct tegra_mc *mc,
99+
static int tegra_mc_unblock_dma_common(struct tegra_mc *mc,
100100
const struct tegra_mc_reset *rst)
101101
{
102102
unsigned long flags;
@@ -112,17 +112,17 @@ static int terga_mc_unblock_dma_common(struct tegra_mc *mc,
112112
return 0;
113113
}
114114

115-
static int terga_mc_reset_status_common(struct tegra_mc *mc,
115+
static int tegra_mc_reset_status_common(struct tegra_mc *mc,
116116
const struct tegra_mc_reset *rst)
117117
{
118118
return (mc_readl(mc, rst->control) & BIT(rst->bit)) != 0;
119119
}
120120

121-
const struct tegra_mc_reset_ops terga_mc_reset_ops_common = {
122-
.block_dma = terga_mc_block_dma_common,
123-
.dma_idling = terga_mc_dma_idling_common,
124-
.unblock_dma = terga_mc_unblock_dma_common,
125-
.reset_status = terga_mc_reset_status_common,
121+
const struct tegra_mc_reset_ops tegra_mc_reset_ops_common = {
122+
.block_dma = tegra_mc_block_dma_common,
123+
.dma_idling = tegra_mc_dma_idling_common,
124+
.unblock_dma = tegra_mc_unblock_dma_common,
125+
.reset_status = tegra_mc_reset_status_common,
126126
};
127127

128128
static inline struct tegra_mc *reset_to_mc(struct reset_controller_dev *rcdev)

‎drivers/memory/tegra/mc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static inline void mc_writel(struct tegra_mc *mc, u32 value,
3535
writel_relaxed(value, mc->regs + offset);
3636
}
3737

38-
extern const struct tegra_mc_reset_ops terga_mc_reset_ops_common;
38+
extern const struct tegra_mc_reset_ops tegra_mc_reset_ops_common;
3939

4040
#ifdef CONFIG_ARCH_TEGRA_2x_SOC
4141
extern const struct tegra_mc_soc tegra20_mc_soc;

‎drivers/memory/tegra/tegra114.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ const struct tegra_mc_soc tegra114_mc_soc = {
975975
.smmu = &tegra114_smmu_soc,
976976
.intmask = MC_INT_INVALID_SMMU_PAGE | MC_INT_SECURITY_VIOLATION |
977977
MC_INT_DECERR_EMEM,
978-
.reset_ops = &terga_mc_reset_ops_common,
978+
.reset_ops = &tegra_mc_reset_ops_common,
979979
.resets = tegra114_mc_resets,
980980
.num_resets = ARRAY_SIZE(tegra114_mc_resets),
981981
};

‎drivers/memory/tegra/tegra124.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ const struct tegra_mc_soc tegra124_mc_soc = {
10741074
.intmask = MC_INT_DECERR_MTS | MC_INT_SECERR_SEC | MC_INT_DECERR_VPR |
10751075
MC_INT_INVALID_APB_ASID_UPDATE | MC_INT_INVALID_SMMU_PAGE |
10761076
MC_INT_SECURITY_VIOLATION | MC_INT_DECERR_EMEM,
1077-
.reset_ops = &terga_mc_reset_ops_common,
1077+
.reset_ops = &tegra_mc_reset_ops_common,
10781078
.resets = tegra124_mc_resets,
10791079
.num_resets = ARRAY_SIZE(tegra124_mc_resets),
10801080
};
@@ -1104,7 +1104,7 @@ const struct tegra_mc_soc tegra132_mc_soc = {
11041104
.intmask = MC_INT_DECERR_MTS | MC_INT_SECERR_SEC | MC_INT_DECERR_VPR |
11051105
MC_INT_INVALID_APB_ASID_UPDATE | MC_INT_INVALID_SMMU_PAGE |
11061106
MC_INT_SECURITY_VIOLATION | MC_INT_DECERR_EMEM,
1107-
.reset_ops = &terga_mc_reset_ops_common,
1107+
.reset_ops = &tegra_mc_reset_ops_common,
11081108
.resets = tegra124_mc_resets,
11091109
.num_resets = ARRAY_SIZE(tegra124_mc_resets),
11101110
};

‎drivers/memory/tegra/tegra20.c‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static const struct tegra_mc_reset tegra20_mc_resets[] = {
198198
TEGRA20_MC_RESET(VI, 0x100, 0x178, 0x104, 14),
199199
};
200200

201-
static int terga20_mc_hotreset_assert(struct tegra_mc *mc,
201+
static int tegra20_mc_hotreset_assert(struct tegra_mc *mc,
202202
const struct tegra_mc_reset *rst)
203203
{
204204
unsigned long flags;
@@ -214,7 +214,7 @@ static int terga20_mc_hotreset_assert(struct tegra_mc *mc,
214214
return 0;
215215
}
216216

217-
static int terga20_mc_hotreset_deassert(struct tegra_mc *mc,
217+
static int tegra20_mc_hotreset_deassert(struct tegra_mc *mc,
218218
const struct tegra_mc_reset *rst)
219219
{
220220
unsigned long flags;
@@ -230,7 +230,7 @@ static int terga20_mc_hotreset_deassert(struct tegra_mc *mc,
230230
return 0;
231231
}
232232

233-
static int terga20_mc_block_dma(struct tegra_mc *mc,
233+
static int tegra20_mc_block_dma(struct tegra_mc *mc,
234234
const struct tegra_mc_reset *rst)
235235
{
236236
unsigned long flags;
@@ -246,19 +246,19 @@ static int terga20_mc_block_dma(struct tegra_mc *mc,
246246
return 0;
247247
}
248248

249-
static bool terga20_mc_dma_idling(struct tegra_mc *mc,
249+
static bool tegra20_mc_dma_idling(struct tegra_mc *mc,
250250
const struct tegra_mc_reset *rst)
251251
{
252252
return mc_readl(mc, rst->status) == 0;
253253
}
254254

255-
static int terga20_mc_reset_status(struct tegra_mc *mc,
255+
static int tegra20_mc_reset_status(struct tegra_mc *mc,
256256
const struct tegra_mc_reset *rst)
257257
{
258258
return (mc_readl(mc, rst->reset) & BIT(rst->bit)) == 0;
259259
}
260260

261-
static int terga20_mc_unblock_dma(struct tegra_mc *mc,
261+
static int tegra20_mc_unblock_dma(struct tegra_mc *mc,
262262
const struct tegra_mc_reset *rst)
263263
{
264264
unsigned long flags;
@@ -274,13 +274,13 @@ static int terga20_mc_unblock_dma(struct tegra_mc *mc,
274274
return 0;
275275
}
276276

277-
static const struct tegra_mc_reset_ops terga20_mc_reset_ops = {
278-
.hotreset_assert = terga20_mc_hotreset_assert,
279-
.hotreset_deassert = terga20_mc_hotreset_deassert,
280-
.block_dma = terga20_mc_block_dma,
281-
.dma_idling = terga20_mc_dma_idling,
282-
.unblock_dma = terga20_mc_unblock_dma,
283-
.reset_status = terga20_mc_reset_status,
277+
static const struct tegra_mc_reset_ops tegra20_mc_reset_ops = {
278+
.hotreset_assert = tegra20_mc_hotreset_assert,
279+
.hotreset_deassert = tegra20_mc_hotreset_deassert,
280+
.block_dma = tegra20_mc_block_dma,
281+
.dma_idling = tegra20_mc_dma_idling,
282+
.unblock_dma = tegra20_mc_unblock_dma,
283+
.reset_status = tegra20_mc_reset_status,
284284
};
285285

286286
const struct tegra_mc_soc tegra20_mc_soc = {
@@ -290,7 +290,7 @@ const struct tegra_mc_soc tegra20_mc_soc = {
290290
.client_id_mask = 0x3f,
291291
.intmask = MC_INT_SECURITY_VIOLATION | MC_INT_INVALID_GART_PAGE |
292292
MC_INT_DECERR_EMEM,
293-
.reset_ops = &terga20_mc_reset_ops,
293+
.reset_ops = &tegra20_mc_reset_ops,
294294
.resets = tegra20_mc_resets,
295295
.num_resets = ARRAY_SIZE(tegra20_mc_resets),
296296
};

‎drivers/memory/tegra/tegra210.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ const struct tegra_mc_soc tegra210_mc_soc = {
11321132
.intmask = MC_INT_DECERR_MTS | MC_INT_SECERR_SEC | MC_INT_DECERR_VPR |
11331133
MC_INT_INVALID_APB_ASID_UPDATE | MC_INT_INVALID_SMMU_PAGE |
11341134
MC_INT_SECURITY_VIOLATION | MC_INT_DECERR_EMEM,
1135-
.reset_ops = &terga_mc_reset_ops_common,
1135+
.reset_ops = &tegra_mc_reset_ops_common,
11361136
.resets = tegra210_mc_resets,
11371137
.num_resets = ARRAY_SIZE(tegra210_mc_resets),
11381138
};

‎drivers/memory/tegra/tegra30.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ const struct tegra_mc_soc tegra30_mc_soc = {
999999
.smmu = &tegra30_smmu_soc,
10001000
.intmask = MC_INT_INVALID_SMMU_PAGE | MC_INT_SECURITY_VIOLATION |
10011001
MC_INT_DECERR_EMEM,
1002-
.reset_ops = &terga_mc_reset_ops_common,
1002+
.reset_ops = &tegra_mc_reset_ops_common,
10031003
.resets = tegra30_mc_resets,
10041004
.num_resets = ARRAY_SIZE(tegra30_mc_resets),
10051005
};

0 commit comments

Comments
 (0)