linux/drivers/scsi/pm8001
Li Zhijian 8179041f80 scsi: pm8001: 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/scsi/pm8001/pm8001_ctl.c:883:8-16: WARNING: please use sysfs_emit

No functional change intended

CC: Jack Wang <jinpu.wang@cloud.ionos.com>
CC: James E.J. Bottomley <jejb@linux.ibm.com>
CC: Martin K. Petersen <martin.petersen@oracle.com>
CC: linux-scsi@vger.kernel.org
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Link: https://lore.kernel.org/r/20240116045151.3940401-32-lizhijian@fujitsu.com
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2024-01-29 20:40:49 -05:00
..
Makefile scsi: pm80xx: Add tracepoints 2021-11-18 22:26:58 -05:00
pm80xx_hwi.c scsi: pm8001: Remove PM8001_USE_MSIX 2023-09-21 21:39:46 -04:00
pm80xx_hwi.h scsi: pm80xx: Set RETFIS when requested by libsas 2023-08-21 17:11:41 -04:00
pm80xx_tracepoints.c scsi: pm80xx: Add tracepoints 2021-11-18 22:26:58 -05:00
pm80xx_tracepoints.h scsi: pm80xx: Add pm80xx_mpi_build_cmd() tracepoint 2021-11-18 22:26:58 -05:00
pm8001_chips.h
pm8001_ctl.c scsi: pm8001: Convert snprintf() to sysfs_emit() 2024-01-29 20:40:49 -05:00
pm8001_ctl.h scsi: pm8001: Clean up white space 2021-04-12 23:21:26 -04:00
pm8001_defs.h scsi: pm80xx: Increase the number of outstanding I/O supported to 1024 2020-10-07 23:50:04 -04:00
pm8001_hwi.c scsi: pm8001: Remove PM8001_USE_MSIX 2023-09-21 21:39:46 -04:00
pm8001_hwi.h scsi: pm80xx: Set RETFIS when requested by libsas 2023-08-21 17:11:41 -04:00
pm8001_init.c scsi: pm8001: Remove PM8001_READ_VPD 2023-09-21 21:39:47 -04:00
pm8001_sas.c scsi: pm80xx: Add fatal error checks 2023-05-31 20:06:53 -04:00
pm8001_sas.h scsi: pm8001: Remove PM8001_READ_VPD 2023-09-21 21:39:47 -04:00