diff options
author | Li Zhijian <lizhijian@fujitsu.com> | 2024-01-25 02:53:29 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-01-27 05:35:17 +0100 |
commit | 8d0293302dfb62dd436622d8bfae23b8074ce2bd (patch) | |
tree | 3d37645a3198169a4d23856458e183f3c7d7e97d /Documentation/devicetree | |
parent | Merge branch 'af_unix-random-improvements-for-gc' (diff) | |
download | linux-8d0293302dfb62dd436622d8bfae23b8074ce2bd.tar.xz linux-8d0293302dfb62dd436622d8bfae23b8074ce2bd.zip |
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>
Diffstat (limited to 'Documentation/devicetree')
0 files changed, 0 insertions, 0 deletions