]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thermal: debugfs: Use seq_puts() for constant string output
authorSumeet Pawnikar <sumeet4linux@gmail.com>
Sat, 10 Jan 2026 18:38:34 +0000 (00:08 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 15 Jan 2026 20:06:17 +0000 (21:06 +0100)
commitc116cab81513858e46e54f1788c5fb8ec231cc9a
treea44809897e250121e78f3e34f24fd73d99423a25
parent7cb776b74c666c04c9fa10482b0e4d9f049d4fc2
thermal: debugfs: Use seq_puts() for constant string output

Replace seq_printf() with seq_puts() when outputting a constant string
without format specifiers in the thermal mitigation debugfs interface.

seq_puts() is more appropriate and efficient as it avoids unnecessary
format string parsing overhead.

No functional change.

Signed-off-by: Sumeet Pawnikar <sumeet4linux@gmail.com>
Link: https://patch.msgid.link/20260110183912.372215-1-sumeet4linux@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_debugfs.c