diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-10-29 14:08:40 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-10-29 14:08:40 -0700 |
commit | 1c29d9899081d090cbe2aab128e527354af7f343 (patch) | |
tree | 83e3376286d1a808d3f73276750b558776c272ac /drivers/soc/ti/knav_qmss_queue.c | |
parent | cd29296fdfca919590e4004a7e4905544f4c4a32 (diff) | |
parent | 07e0887302450a62f51dba72df6afb5fabb23d1c (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/soc/ti/knav_qmss_queue.c')
-rw-r--r-- | drivers/soc/ti/knav_qmss_queue.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c index aa071d96ef36..a460f201bf8e 100644 --- a/drivers/soc/ti/knav_qmss_queue.c +++ b/drivers/soc/ti/knav_qmss_queue.c @@ -478,17 +478,7 @@ static int knav_queue_debug_show(struct seq_file *s, void *v) return 0; } -static int knav_queue_debug_open(struct inode *inode, struct file *file) -{ - return single_open(file, knav_queue_debug_show, NULL); -} - -static const struct file_operations knav_queue_debug_ops = { - .open = knav_queue_debug_open, - .read = seq_read, - .llseek = seq_lseek, - .release = single_release, -}; +DEFINE_SHOW_ATTRIBUTE(knav_queue_debug); static inline int knav_queue_pdsp_wait(u32 * __iomem addr, unsigned timeout, u32 flags) @@ -1878,7 +1868,7 @@ static int knav_queue_probe(struct platform_device *pdev) } debugfs_create_file("qmss", S_IFREG | S_IRUGO, NULL, NULL, - &knav_queue_debug_ops); + &knav_queue_debug_fops); device_ready = true; return 0; |