Skip to content

Commit fa3bc04

Browse files
committed
soc/tegra: pmc: Explicitly initialize all fields
It's not strictly necessary to initialize the fields in struct tegra_pmc_soc if they are 0/false. However, we already initialize them explicitly even if unnecessary, so keep doing that for consistency. Signed-off-by: Thierry Reding <treding@nvidia.com> Acked-by: Jon Hunter <jonathanh@nvidia.com>
1 parent f1d9129 commit fa3bc04

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎drivers/soc/tegra/pmc.c‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2069,6 +2069,8 @@ static const struct tegra_pmc_soc tegra20_pmc_soc = {
20692069
.cpu_powergates = NULL,
20702070
.has_tsense_reset = false,
20712071
.has_gpu_clamps = false,
2072+
.needs_mbist_war = false,
2073+
.has_impl_33v_pwr = false,
20722074
.num_io_pads = 0,
20732075
.io_pads = NULL,
20742076
.num_pin_descs = 0,
@@ -2113,6 +2115,7 @@ static const struct tegra_pmc_soc tegra30_pmc_soc = {
21132115
.cpu_powergates = tegra30_cpu_powergates,
21142116
.has_tsense_reset = true,
21152117
.has_gpu_clamps = false,
2118+
.needs_mbist_war = false,
21162119
.has_impl_33v_pwr = false,
21172120
.num_io_pads = 0,
21182121
.io_pads = NULL,
@@ -2162,6 +2165,7 @@ static const struct tegra_pmc_soc tegra114_pmc_soc = {
21622165
.cpu_powergates = tegra114_cpu_powergates,
21632166
.has_tsense_reset = true,
21642167
.has_gpu_clamps = false,
2168+
.needs_mbist_war = false,
21652169
.has_impl_33v_pwr = false,
21662170
.num_io_pads = 0,
21672171
.io_pads = NULL,
@@ -2271,6 +2275,7 @@ static const struct tegra_pmc_soc tegra124_pmc_soc = {
22712275
.cpu_powergates = tegra124_cpu_powergates,
22722276
.has_tsense_reset = true,
22732277
.has_gpu_clamps = true,
2278+
.needs_mbist_war = false,
22742279
.has_impl_33v_pwr = false,
22752280
.num_io_pads = ARRAY_SIZE(tegra124_io_pads),
22762281
.io_pads = tegra124_io_pads,
@@ -2375,8 +2380,8 @@ static const struct tegra_pmc_soc tegra210_pmc_soc = {
23752380
.cpu_powergates = tegra210_cpu_powergates,
23762381
.has_tsense_reset = true,
23772382
.has_gpu_clamps = true,
2378-
.has_impl_33v_pwr = false,
23792383
.needs_mbist_war = true,
2384+
.has_impl_33v_pwr = false,
23802385
.num_io_pads = ARRAY_SIZE(tegra210_io_pads),
23812386
.io_pads = tegra210_io_pads,
23822387
.num_pin_descs = ARRAY_SIZE(tegra210_pin_descs),
@@ -2499,6 +2504,7 @@ static const struct tegra_pmc_soc tegra186_pmc_soc = {
24992504
.cpu_powergates = NULL,
25002505
.has_tsense_reset = false,
25012506
.has_gpu_clamps = false,
2507+
.needs_mbist_war = false,
25022508
.has_impl_33v_pwr = true,
25032509
.num_io_pads = ARRAY_SIZE(tegra186_io_pads),
25042510
.io_pads = tegra186_io_pads,
@@ -2577,6 +2583,8 @@ static const struct tegra_pmc_soc tegra194_pmc_soc = {
25772583
.cpu_powergates = NULL,
25782584
.has_tsense_reset = false,
25792585
.has_gpu_clamps = false,
2586+
.needs_mbist_war = false,
2587+
.has_impl_33v_pwr = false,
25802588
.num_io_pads = ARRAY_SIZE(tegra194_io_pads),
25812589
.io_pads = tegra194_io_pads,
25822590
.regs = &tegra186_pmc_regs,

0 commit comments

Comments
 (0)