]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpufreq: Use str_enable_disable() helper
authorLifeng Zheng <zhenglifeng1@huawei.com>
Fri, 7 Feb 2025 03:59:53 +0000 (11:59 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 7 Feb 2025 04:15:02 +0000 (09:45 +0530)
Commit f994c1cb6c43 ("cpufreq: Use str_enable_disable()-like helpers") has
already introduced helpers from string_choices.h and replaced ternary
syntax with it. Use str_enable_disable() helper in this line to stay
consistent.

Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq.c

index 30ffbddc7ecec72c010a892c4afdace76146d9d7..a12e1da89163897dbf1b9b0c26c9b661baef73fe 100644 (file)
@@ -1578,7 +1578,7 @@ static int cpufreq_online(unsigned int cpu)
                if (ret) {
                        /* If the set_boost fails, the online operation is not affected */
                        pr_info("%s: CPU%d: Cannot %s BOOST\n", __func__, policy->cpu,
-                               policy->boost_enabled ? "enable" : "disable");
+                               str_enable_disable(policy->boost_enabled));
                        policy->boost_enabled = !policy->boost_enabled;
                }
        }