Home
last modified time | relevance | path

Searched hist:"679062 c6" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/scsi/pm8001/
H A Dpm8001_ctl.c679062c6 Thu Dec 08 14:11:43 CST 2022 Deepak R Varma <drv@mailo.com> 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>