diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-03-02 11:01:07 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-11 07:44:52 -0400 |
commit | e40402cf182e798fd71824f4ad02fb51ce599bb2 (patch) | |
tree | 2b3c87838f5f53a4eb7e74738f6d792ab64d1c8d /drivers/video/omap2/dss/rfbi.c | |
parent | 461395c464e559a01cbc66d97ed4b8585b437cf9 (diff) |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/rfbi.c b/drivers/video/omap2/dss/rfbi.c index c5e69068489d..6adbea97332e 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, | |||
819 | } | 819 | } |
820 | EXPORT_SYMBOL(omap_rfbi_update); | 820 | EXPORT_SYMBOL(omap_rfbi_update); |
821 | 821 | ||
822 | void rfbi_dump_regs(struct seq_file *s) | 822 | static void rfbi_dump_regs(struct seq_file *s) |
823 | { | 823 | { |
824 | #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, rfbi_read_reg(r)) | 824 | #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, rfbi_read_reg(r)) |
825 | 825 | ||
@@ -976,6 +976,8 @@ static int omap_rfbihw_probe(struct platform_device *pdev) | |||
976 | 976 | ||
977 | rfbi_runtime_put(); | 977 | rfbi_runtime_put(); |
978 | 978 | ||
979 | dss_debugfs_create_file("rfbi", rfbi_dump_regs); | ||
980 | |||
979 | return 0; | 981 | return 0; |
980 | 982 | ||
981 | err_runtime_get: | 983 | err_runtime_get: |