diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-03-02 20:01:07 +0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-11 15:44:52 +0400 |
commit | e40402cf182e798fd71824f4ad02fb51ce599bb2 (patch) | |
tree | 2b3c87838f5f53a4eb7e74738f6d792ab64d1c8d /drivers/video/omap2/dss/dss.c | |
parent | 461395c464e559a01cbc66d97ed4b8585b437cf9 (diff) | |
download | linux-e40402cf182e798fd71824f4ad02fb51ce599bb2.tar.xz |
OMAPDSS: move the creation of debugfs files
Instead of having an ugly #ifdef mess in the core.c for creating debugfs
files, add a dss_debugfs_create_file() function that the dss drivers
can use to create the debugfs files.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dss.c')
-rw-r--r-- | drivers/video/omap2/dss/dss.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c index 900002a6c7dd..08bee78191d6 100644 --- a/drivers/video/omap2/dss/dss.c +++ b/drivers/video/omap2/dss/dss.c @@ -280,7 +280,7 @@ void dss_dump_clocks(struct seq_file *s) dss_runtime_put(); } -void dss_dump_regs(struct seq_file *s) +static void dss_dump_regs(struct seq_file *s) { #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, dss_read_reg(r)) @@ -795,6 +795,8 @@ static int omap_dsshw_probe(struct platform_device *pdev) dss_runtime_put(); + dss_debugfs_create_file("dss", dss_dump_regs); + return 0; err_runtime_get: |