]> Gentwo Git Trees - linux/.git/commit
drivers: tee: improve sysfs interface by using sysfs_emit()
authorAkhilesh Patil <akhilesh@ee.iitb.ac.in>
Fri, 18 Jul 2025 15:30:13 +0000 (21:00 +0530)
committerJens Wiklander <jens.wiklander@linaro.org>
Mon, 4 Aug 2025 09:05:23 +0000 (11:05 +0200)
commit1faa0d62a19bb8a4b9022b603472e7127974cb55
tree0427fbcc86d017d78b758b64d057d31129595a73
parent038d61fd642278bab63ee8ef722c50d10ab01e8f
drivers: tee: improve sysfs interface by using sysfs_emit()

Replace scnprintf() with sysfs_emit() while formatting buffer that is
passed to userspace as per the recommendation in
Documentation/filesystems/sysfs.rst. sysfs _show() callbacks should use
sysfs_emit() or sysfs_emit_at() while returning values to the userspace.
This change does not impact functionality, but aligns with sysfs
interface usage guidelines for the tee driver.

Signed-off-by: Akhilesh Patil <akhilesh@ee.iitb.ac.in>
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/core.c
drivers/tee/tee_core.c