]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thermal: testing: Replace sscanf() with kstrtoint()
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Sat, 6 Jun 2026 21:04:19 +0000 (00:04 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 8 Jun 2026 13:57:05 +0000 (15:57 +0200)
commite4f87cfcbae03498f0fd1689653cf84126196e14
tree6a3eaee49678085478990ceb5e5ea579c0e431f7
parentef3e98b0aa4b348f44065d7130251273c83bd204
thermal: testing: Replace sscanf() with kstrtoint()

Generally, kstrtoint() is preferred to sscanf() in kernel code, so
replace the latter with the former in tt_del_tz() and tt_get_tt_zone().

Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
[ rjw: Changelog rewrite ]
Link: https://patch.msgid.link/20260606210420.2311145-2-ovidiu.panait.oss@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/testing/zone.c