]> Gentwo Git Trees - linux/.git/commit
thermal: intel: int340x: Replace sprintf() with sysfs_emit()
authorKaushlendra Kumar <kaushlendra.kumar@intel.com>
Thu, 30 Oct 2025 05:34:10 +0000 (11:04 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 12 Nov 2025 20:13:13 +0000 (21:13 +0100)
commit347d92a79585c6c54be635be9e667384d2685c5c
treeab20edc905c6bdc0c1540ade6b1cc33d35419d61
parent901990781657660b2621fa7ff86599cf0b98da31
thermal: intel: int340x: Replace sprintf() with sysfs_emit()

Replace sprintf() calls with sysfs_emit() in sysfs "show" functions to
follow current kernel coding standards.

sysfs_emit() is the preferred method for formatting sysfs output as it
provides better bounds checking and is more secure.

Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
[ rjw: Subject adjustments, changelog edits ]
Link: https://patch.msgid.link/20251030053410.311656-1-kaushlendra.kumar@intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/int3400_thermal.c