From e544f6840d801aeef3409cb6ef97798b4086caff Mon Sep 17 00:00:00 2001 From: libing Date: Thu, 17 Apr 2014 17:38:09 +0800 Subject: [PATCH] rk3288-mipi-dsi: add the rk616 mipi driver 'struct dentry *debugfs_dir'. --- drivers/video/rockchip/transmitter/rk616_mipi_dsi.c | 8 ++++---- drivers/video/rockchip/transmitter/rk616_mipi_dsi.h | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/video/rockchip/transmitter/rk616_mipi_dsi.c b/drivers/video/rockchip/transmitter/rk616_mipi_dsi.c index 59c627795ee0..1c9685b01693 100755 --- a/drivers/video/rockchip/transmitter/rk616_mipi_dsi.c +++ b/drivers/video/rockchip/transmitter/rk616_mipi_dsi.c @@ -2447,8 +2447,8 @@ static int rk616_mipi_dsi_probe(struct platform_device *pdev) rk_fb_trsm_ops_register(&trsm_dsi_ops, SCREEN_MIPI); #ifdef MIPI_DSI_REGISTER_IO - //debugfs_create_file("mipidsi0", S_IFREG | S_IRUGO, dsi->debugfs_dir, dsi, - // ®_proc_fops); + debugfs_create_file("mipidsi0", S_IFREG | S_IRUGO, dsi->debugfs_dir, dsi, + ®_proc_fops); #endif dsi0 = dsi; @@ -2456,8 +2456,8 @@ static int rk616_mipi_dsi_probe(struct platform_device *pdev) dsi1 = dsi; #ifdef MIPI_DSI_REGISTER_IO - // debugfs_create_file("mipidsi1", S_IFREG | S_IRUGO, dsi->debugfs_dir, dsi, -// ®_proc_fops1); + debugfs_create_file("mipidsi1", S_IFREG | S_IRUGO, dsi->debugfs_dir, dsi, + ®_proc_fops1); #endif } diff --git a/drivers/video/rockchip/transmitter/rk616_mipi_dsi.h b/drivers/video/rockchip/transmitter/rk616_mipi_dsi.h index 6c1e1ec77860..987e86ae3e96 100755 --- a/drivers/video/rockchip/transmitter/rk616_mipi_dsi.h +++ b/drivers/video/rockchip/transmitter/rk616_mipi_dsi.h @@ -439,6 +439,7 @@ struct dsi { struct early_suspend early_suspend; #endif #endif + struct dentry *debugfs_dir; struct platform_device *pdev; }; -- 2.34.1