]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: pm8001: Use sysfs_emit() in show function callbacks
authorDeepak R Varma <drv@mailo.com>
Thu, 8 Dec 2022 20:11:43 +0000 (01:41 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Jan 2023 02:53:34 +0000 (21:53 -0500)
commit679062c65b2c7824b5bf6cef9d286ef101466122
tree61ee6ffa5c43e8a2a2a49c4f82955c6354ae2a7c
parentd058bea181887e2e05416c6bc1adc6e1d2798f3b
scsi: pm8001: Use sysfs_emit() in show function callbacks

According to Documentation/filesystems/sysfs.rst, the show() callback
function of kobject attributes should use sysfs_emit() instead of the
sprintf() family of functions.

Issue identified using the coccinelle device_attr_show.cocci script.

Link: https://lore.kernel.org/r/Y5JE/xI2NNbnox/A@qemulion
Signed-off-by: Deepak R Varma <drv@mailo.com>
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm8001_ctl.c