diff options
| author | Thierry Reding <treding@nvidia.com> | 2025-02-03 14:47:15 +0100 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2026-01-18 08:48:29 +0100 |
| commit | b2a3e8200056480219d4bc44c3403cacf0125495 (patch) | |
| tree | 218c0f205fd85ec64ee26a54af47d888456113c7 /drivers/soc | |
| parent | a9f822b3ff7b47a5b78f1258b998cbeb29089a62 (diff) | |
| download | linux-b2a3e8200056480219d4bc44c3403cacf0125495.tar.gz linux-b2a3e8200056480219d4bc44c3403cacf0125495.tar.bz2 linux-b2a3e8200056480219d4bc44c3403cacf0125495.zip | |
soc/tegra: pmc: Pass PMC context as debugfs data
Each debugfs file can have private data associated with it. Use this to
pass the PMC context instead of relying on a global variable.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/soc')
| -rw-r--r-- | drivers/soc/tegra/pmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c index cd7c557c886b..f215396206f1 100644 --- a/drivers/soc/tegra/pmc.c +++ b/drivers/soc/tegra/pmc.c @@ -1178,6 +1178,7 @@ static int tegra_pmc_power_off_handler(struct sys_off_data *data) static int powergate_show(struct seq_file *s, void *data) { + struct tegra_pmc *pmc = data; unsigned int i; int status; @@ -3097,7 +3098,7 @@ static int tegra_pmc_probe(struct platform_device *pdev) if (pmc->soc->set_wake_filters) pmc->soc->set_wake_filters(pmc); - debugfs_create_file("powergate", 0444, NULL, NULL, &powergate_fops); + debugfs_create_file("powergate", 0444, NULL, pmc, &powergate_fops); return 0; |
