tmp_suning_uos_patched/drivers/ptp
Yang Guang 02e2ee8619 ptp: replace snprintf with sysfs_emit
[ Upstream commit e2cf07654efb0fd7bbcb475c6f74be7b5755a8fd ]

coccinelle report:
./drivers/ptp/ptp_sysfs.c:17:8-16:
WARNING: use scnprintf or sprintf
./drivers/ptp/ptp_sysfs.c:390:8-16:
WARNING: use scnprintf or sprintf

Use sysfs_emit instead of scnprintf or sprintf makes more sense.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Yang Guang <yang.guang5@zte.com.cn>
Signed-off-by: David Yang <davidcomponentone@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 21:00:55 +02:00
..
idt8a340_reg.h
Kconfig ptp_pch: Restore dependency on PCI 2021-08-26 08:35:46 -04:00
Makefile
ptp_chardev.c
ptp_clock.c ptp: improve max_adj check against unreasonable values 2021-06-23 14:42:45 +02:00
ptp_clockmatrix.c
ptp_clockmatrix.h
ptp_dte.c
ptp_idt82p33.c
ptp_idt82p33.h
ptp_ines.c
ptp_kvm.c
ptp_pch.c ptp_pch: Load module automatically if ID matches 2021-10-13 10:04:27 +02:00
ptp_private.h
ptp_qoriq_debugfs.c
ptp_qoriq.c
ptp_sysfs.c ptp: replace snprintf with sysfs_emit 2022-04-13 21:00:55 +02:00
ptp_vmw.c