gpu: host1x: Use DEFINE_SHOW_ATTRIBUTE to simplify debugfs code
authorLiu Shixin <liushixin2@huawei.com>
Thu, 22 Sep 2022 14:23:16 +0000 (22:23 +0800)
committerThierry Reding <treding@nvidia.com>
Fri, 25 Nov 2022 15:14:59 +0000 (16:14 +0100)
commita624bd9cbdcfdc4e0cf68bb0061af6de366ebd7d
tree0fcd003fb992bbb0ed9578a63d83904453b81dd5
parentde383d8008c15519ed13eecfdd0a90882d7009da
gpu: host1x: Use DEFINE_SHOW_ATTRIBUTE to simplify debugfs code

Use DEFINE_SHOW_ATTRIBUTE helper macro to simplify the debugfs code for
the status and status_all entries. No functional change.

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/debug.c