debugfs: use DEFINE_SHOW_ATTRIBUTE to define debugfs_regset32_fops
authorChenXiaoSong <chenxiaosong2@huawei.com>
Fri, 23 Sep 2022 10:25:54 +0000 (18:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2022 13:00:48 +0000 (15:00 +0200)
commit19029f3f47c7f2dd796cecd001619a37034d658a
tree83150e392ae8da9374889c7ef04f978d6273fa4c
parentd70590d53a8996acf55426ba934d49eee9f091cd
debugfs: use DEFINE_SHOW_ATTRIBUTE to define debugfs_regset32_fops

Use DEFINE_SHOW_ATTRIBUTE helper macro to simplify the code.

Signed-off-by: ChenXiaoSong <chenxiaosong2@huawei.com>
Link: https://lore.kernel.org/r/20220923102554.2443452-1-chenxiaosong2@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/debugfs/file.c