]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: qat - replace scnprintf() with sysfs_emit()
authorAtharv Dubey <atharvd440@gmail.com>
Tue, 24 Mar 2026 18:17:24 +0000 (18:17 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Apr 2026 00:56:11 +0000 (08:56 +0800)
commit6bd87f2ea5b2d44ed1f43a90f220be34f7c1ce4e
treeb36c9dda1a642f3f2217621b812bdf5bf9a4298c
parentec23d75c4b77ae42af0777ea59599b1d4f611371
crypto: qat - replace scnprintf() with sysfs_emit()

Replace scnprintf() with sysfs_emit() in the three RAS error counter
sysfs show callbacks. sysfs_emit() is the recommended API for sysfs show
functions as per Documentation/filesystems/sysfs.rst; it enforces the
PAGE_SIZE limit implicitly, removing the need to pass it explicitly.

Signed-off-by: Atharv Dubey <atharvd440@gmail.com>
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Ahsan Atta <ahsan.atta@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/qat/qat_common/adf_sysfs_ras_counters.c