]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fpga: bridge: Use sysfs_emit() instead of sprintf()
authorDinh Nguyen <dinguyen@kernel.org>
Sat, 17 Jan 2026 04:36:26 +0000 (22:36 -0600)
committerXu Yilun <yilun.xu@linux.intel.com>
Mon, 2 Mar 2026 09:47:44 +0000 (17:47 +0800)
commit26e5e1be2e640a562618c1aa03ed15b62bfbf2d6
tree087262edaac4dfeedf042ce5643148d82496685e
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
fpga: bridge: Use sysfs_emit() instead of sprintf()

According to Documentation/filesystems/sysfs.rst, show() functions
should use sysfs_emit() when formatting the value to be returned to user
space.

This keeps consistent usage of sysfs_emit() across the same file.

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
[ Yilun: clarify the necessity of the change in changelog ]
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20260117043626.2188219-1-dinguyen@kernel.org
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/fpga-bridge.c