linux/drivers/ptp
YueHaibing 84239b4459 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>
2019-01-25 22:05:23 -08:00
..
Kconfig ptp: add debugfs support for ptp_qoriq 2019-01-22 20:21:57 -08:00
Makefile ptp: add debugfs support for ptp_qoriq 2019-01-22 20:21:57 -08:00
ptp_chardev.c ptp: check that rsv field is zero in struct ptp_sys_offset_extended 2019-01-08 16:22:56 -05:00
ptp_clock.c Char/Misc driver patches for 4.21-rc1 2018-12-28 20:54:57 -08:00
ptp_dte.c ptp: ptp_dte: simplify getting .driver_data 2018-10-22 19:48:35 -07:00
ptp_ixp46x.c
ptp_kvm.c
ptp_pch.c ptp_pch: use helpers function for converting between ns and timespec 2018-04-27 15:22:28 -04:00
ptp_private.h
ptp_qoriq_debugfs.c ptp: fix debugfs_simple_attr.cocci warnings 2019-01-25 22:05:23 -08:00
ptp_qoriq.c ptp: add debugfs support for ptp_qoriq 2019-01-22 20:21:57 -08:00
ptp_sysfs.c