diff options
| author | Bowen Yu <[email protected]> | 2025-05-19 07:09:38 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-05-21 20:27:36 +0000 |
| commit | 1da98dc52b948a6063415d8bae0c60ef89044a8c (patch) | |
| tree | a55335283b16d16632a30e04caf81a7c222e550b /rust/helpers/helpers.c | |
| parent | cpufreq: Replace magic number (diff) | |
| download | kernel-1da98dc52b948a6063415d8bae0c60ef89044a8c.tar.gz kernel-1da98dc52b948a6063415d8bae0c60ef89044a8c.zip | |
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 <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
