From: Lifeng Zheng Date: Fri, 7 Feb 2025 03:59:53 +0000 (+0800) Subject: cpufreq: Use str_enable_disable() helper X-Git-Tag: v6.15-rc1~191^2~4^2^2~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ba6d37ccca1e4ac07ad660006bf130726a11ff7;p=thirdparty%2Fkernel%2Flinux.git cpufreq: Use str_enable_disable() helper 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 Signed-off-by: Viresh Kumar --- diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 30ffbddc7ecec..a12e1da891638 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -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; } }