linux-stable/drivers/ptp
Li Zhijian 8d0293302d drivers/ptp: Convert snprintf to sysfs_emit
Per filesystems/sysfs.rst, show() should only use sysfs_emit()
or sysfs_emit_at() when formatting the value to be returned to user space.

coccinelle complains that there are still a couple of functions that use
snprintf(). Convert them to sysfs_emit().

> ./drivers/ptp/ptp_sysfs.c:27:8-16: WARNING: please use sysfs_emit

No functional change intended

Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Link: https://lore.kernel.org/r/20240125015329.123023-1-lizhijian@fujitsu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-01-26 20:35:17 -08:00
..
Kconfig ptp_ocp: implement DPLL ops 2023-09-17 11:50:20 +01:00
Makefile net: ptp: create a mock-up PTP Hardware Clock driver 2023-08-09 15:59:21 -07:00
ptp_chardev.c ptp: annotate data-race around q->head and q->tail 2023-11-13 20:51:37 -08:00
ptp_clock.c ptp: annotate data-race around q->head and q->tail 2023-11-13 20:51:37 -08:00
ptp_clockmatrix.c ptp: ptp_clockmatrix: Add .getmaxphase ptp_clock_info callback 2023-06-20 09:02:33 +01:00
ptp_clockmatrix.h ptp: ptp_clockmatrix: Add .getmaxphase ptp_clock_info callback 2023-06-20 09:02:33 +01:00
ptp_dfl_tod.c ptp: add ToD device driver for Intel FPGA cards 2023-03-29 21:25:48 -07:00
ptp_dte.c
ptp_idt82p33.c ptp: idt82p33: Add .getmaxphase ptp_clock_info callback 2023-06-20 09:02:33 +01:00
ptp_idt82p33.h ptp: idt82p33: Add .getmaxphase ptp_clock_info callback 2023-06-20 09:02:33 +01:00
ptp_ines.c net: Convert PHYs hwtstamp callback to use kernel_hwtstamp_config 2023-11-18 14:52:56 +00:00
ptp_kvm_arm.c ptp: kvm: Use decrypted memory in confidential guest on x86 2023-03-17 21:57:52 -07:00
ptp_kvm_common.c ptp: kvm: Use decrypted memory in confidential guest on x86 2023-03-17 21:57:52 -07:00
ptp_kvm_x86.c ptp: kvm: Use decrypted memory in confidential guest on x86 2023-03-17 21:57:52 -07:00
ptp_mock.c net: ptp: create a mock-up PTP Hardware Clock driver 2023-08-09 15:59:21 -07:00
ptp_ocp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-01-04 18:06:46 -08:00
ptp_pch.c
ptp_private.h ptp: annotate data-race around q->head and q->tail 2023-11-13 20:51:37 -08:00
ptp_qoriq.c ptp: Explicitly include correct DT includes 2023-07-18 11:27:49 +02:00
ptp_qoriq_debugfs.c
ptp_sysfs.c drivers/ptp: Convert snprintf to sysfs_emit 2024-01-26 20:35:17 -08:00
ptp_vclock.c
ptp_vmw.c