cpufreq: Update sscanf() to kstrtouint()
authorBowen Yu <yubowen8@huawei.com>
Mon, 19 May 2025 07:09:38 +0000 (15:09 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 21 May 2025 20:27:36 +0000 (22:27 +0200)
commit1da98dc52b948a6063415d8bae0c60ef89044a8c
treea55335283b16d16632a30e04caf81a7c222e550b
parent9c5075fc9d322670d4a82881bf41922a90fe423a
cpufreq: Update sscanf() to kstrtouint()

In store_scaling_setspeed(), sscanf is still used to read to sysfs.
Newer kstrtox provide more features including overflow protection,
better errorhandling and allows for other systems of numeration. It
is therefore better to update sscanf() to kstrtouint().

Signed-off-by: Bowen Yu <yubowen8@huawei.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://patch.msgid.link/20250519070938.931396-1-yubowen8@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c