disp: msm: sde: update check flags to handle CONFIG_DEBUG_FS

Add support to handle disabling of CONFIG_DEBUG_FS.

Change-Id: I8c07434afc36edfae9bd9bc7880d07264eca7650
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
此提交包含在:
Samantha Tran
2020-04-10 16:12:29 -07:00
父節點 22923230ef
當前提交 18d29a5b7b
共有 4 個檔案被更改,包括 13 行新增7 行删除

查看文件

@@ -166,6 +166,7 @@ static void _sde_crtc_deinit_events(struct sde_crtc *sde_crtc)
return;
}
#ifdef CONFIG_DEBUG_FS
static int _sde_debugfs_fps_status_show(struct seq_file *s, void *data)
{
struct sde_crtc *sde_crtc;
@@ -212,6 +213,7 @@ static int _sde_debugfs_fps_status(struct inode *inode, struct file *file)
return single_open(file, _sde_debugfs_fps_status_show,
inode->i_private);
}
#endif
static ssize_t fps_periodicity_ms_store(struct device *device,
struct device_attribute *attr, const char *buf, size_t count)