]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq: simplify boolean parsing with kstrtobool in store function
authorPerry Yuan <perry.yuan@amd.com>
Fri, 21 Jun 2024 16:50:57 +0000 (00:50 +0800)
committerMario Limonciello <mario.limonciello@amd.com>
Mon, 24 Jun 2024 21:16:16 +0000 (16:16 -0500)
commit2240d3e60bb3e7a00422596412d012aeb54c1573
tree97fea748f715aad51543befe1f9bd5e574899c0f
parentbc76f57574741cc8e7d04c53f199d8722ce09413
cpufreq: simplify boolean parsing with kstrtobool in store function

Update the cpufreq store function to use kstrtobool for parsing boolean
values. This simplifies the code and improves readability by using a
standard kernel function for boolean string conversion.

Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Signed-off-by: Perry Yuan <perry.yuan@amd.com>
Link: https://lore.kernel.org/r/d392eba3bad1231776124c321cef8c184ce1482d.1718988436.git.perry.yuan@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/cpufreq.c