wil6210: fix debugfs_simple_attr.cocci warnings
authorYueHaibing <yuehaibing@huawei.com>
Fri, 5 Oct 2018 11:07:26 +0000 (11:07 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 13 Oct 2018 17:28:44 +0000 (20:28 +0300)
commitf9dca154a4e4d185bad15a431f0ff095cd931df6
tree2859958933d4a384571b577b22fa8ed2a3fc5fe3
parent72569b7be461ad563c8118c50f26692e53a189bc
wil6210: fix debugfs_simple_attr.cocci warnings

Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE
for debugfs files.

Semantic patch information:
Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file()
imposes some significant overhead as compared to
DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe().

Generated by: scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/debugfs.c