summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/rfbi.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-03-02 18:01:07 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-05-11 14:44:52 +0300
commite40402cf182e798fd71824f4ad02fb51ce599bb2 (patch)
tree2b3c87838f5f53a4eb7e74738f6d792ab64d1c8d /drivers/video/omap2/dss/rfbi.c
parent461395c464e559a01cbc66d97ed4b8585b437cf9 (diff)
downloadop-kernel-dev-e40402cf182e798fd71824f4ad02fb51ce599bb2.zip
op-kernel-dev-e40402cf182e798fd71824f4ad02fb51ce599bb2.tar.gz
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/rfbi.c')
-rw-r--r--drivers/video/omap2/dss/rfbi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/rfbi.c b/drivers/video/omap2/dss/rfbi.c
index c5e6906..6adbea9 100644
--- a/drivers/video/omap2/dss/rfbi.c
+++ b/drivers/video/omap2/dss/rfbi.c
@@ -819,7 +819,7 @@ int omap_rfbi_update(struct omap_dss_device *dssdev,
}
EXPORT_SYMBOL(omap_rfbi_update);
-void rfbi_dump_regs(struct seq_file *s)
+static void rfbi_dump_regs(struct seq_file *s)
{
#define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, rfbi_read_reg(r))
@@ -976,6 +976,8 @@ static int omap_rfbihw_probe(struct platform_device *pdev)
rfbi_runtime_put();
+ dss_debugfs_create_file("rfbi", rfbi_dump_regs);
+
return 0;
err_runtime_get:
OpenPOWER on IntegriCloud