cpufreq: Use clamp() helper macro to improve the code readability
authorLiao Chang <liaochang1@huawei.com>
Wed, 16 Aug 2023 01:58:53 +0000 (01:58 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Aug 2023 20:10:10 +0000 (22:10 +0200)
commita436ae9434ec491eefb4ed4c77bdb9c762925976
tree9a910ed2e666ff99c207deea55f91456449cf32b
parentd51847acb018d83186e4af67bc93f9a00a8644f7
cpufreq: Use clamp() helper macro to improve the code readability

The valid values of policy.{min, max} should be between 'min' and 'max',
so use clamp() helper macro to makes cpufreq_verify_within_limits() easier
to follow.

Signed-off-by: Liao Chang <liaochang1@huawei.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/cpufreq.h