diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-01-25 02:28:59 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-25 22:05:23 -0800 |
commit | 84239b445964b15045e1418ebf28e74121ace309 (patch) | |
tree | 370b6032ca45e985b98cbfe6d3d8b5bcc0d97625 /tools | |
parent | Merge branch 'r8169-add-EEE-support-for-RTL8168g+' (diff) | |
download | linux-dev-84239b445964b15045e1418ebf28e74121ace309.tar.xz linux-dev-84239b445964b15045e1418ebf28e74121ace309.zip |
ptp: 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>
Acked-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions