tpm: Replace scnprintf() with sysfs_emit() and sysfs_emit_at() in sysfs show functions
authorChelsy Ratnawat <chelsyratnawat2001@gmail.com>
Thu, 26 Jun 2025 12:51:30 +0000 (05:51 -0700)
committerJarkko Sakkinen <jarkko@kernel.org>
Tue, 22 Jul 2025 23:23:18 +0000 (02:23 +0300)
commit9eed6373420ee74ccb2683cba36ad476ed70592d
tree02506bbffff31edf658060837aeb94a571c7edae
parent89dd3695de4b8b17f0cded7c4b695b775b4d1d29
tpm: Replace scnprintf() with sysfs_emit() and sysfs_emit_at() in sysfs show functions

Documentation/filesystems/sysfs.rst mentions that show() should only
use sysfs_emit() or sysfs_emit_at() when formating the value to be
returned to user space. So replace scnprintf() with sysfs_emit().

Signed-off-by: Chelsy Ratnawat <chelsyratnawat2001@gmail.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_ppi.c