Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+2 -1
+2 -1
drivers/soc/tegra/pmc.c
··· 1178 1178 1179 1179 static int powergate_show(struct seq_file *s, void *data) 1180 1180 { 1181 + struct tegra_pmc *pmc = data; 1181 1182 unsigned int i; 1182 1183 int status; 1183 1184 ··· 3098 3097 if (pmc->soc->set_wake_filters) 3099 3098 pmc->soc->set_wake_filters(pmc); 3100 3099 3101 - debugfs_create_file("powergate", 0444, NULL, NULL, &powergate_fops); 3100 + debugfs_create_file("powergate", 0444, NULL, pmc, &powergate_fops); 3102 3101 3103 3102 return 0; 3104 3103