aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/venc.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-03-02 11:01:07 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-05-11 07:44:52 -0400
commite40402cf182e798fd71824f4ad02fb51ce599bb2 (patch)
tree2b3c87838f5f53a4eb7e74738f6d792ab64d1c8d /drivers/video/omap2/dss/venc.c
parent461395c464e559a01cbc66d97ed4b8585b437cf9 (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/venc.c')
-rw-r--r--drivers/video/omap2/dss/venc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/venc.c b/drivers/video/omap2/dss/venc.c
index 90b57c5317bf..ebb6ec60e9a8 100644
--- a/drivers/video/omap2/dss/venc.c
+++ b/drivers/video/omap2/dss/venc.c
@@ -745,7 +745,7 @@ int venc_init_display(struct omap_dss_device *dssdev)
745 return 0; 745 return 0;
746} 746}
747 747
748void venc_dump_regs(struct seq_file *s) 748static void venc_dump_regs(struct seq_file *s)
749{ 749{
750#define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, venc_read_reg(r)) 750#define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, venc_read_reg(r))
751 751
@@ -874,6 +874,8 @@ static int omap_venchw_probe(struct platform_device *pdev)
874 if (r) 874 if (r)
875 goto err_reg_panel_driver; 875 goto err_reg_panel_driver;
876 876
877 dss_debugfs_create_file("venc", venc_dump_regs);
878
877 return 0; 879 return 0;
878 880
879err_reg_panel_driver: 881err_reg_panel_driver: