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 /certs | |
parent | f515220cc24be9824d304ebe62867ec31aeb47fb (diff) |
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 'certs')
0 files changed, 0 insertions, 0 deletions