Commit 5487f259 authored by Lifeng Zheng's avatar Lifeng Zheng Committed by Chanwoo Choi
Browse files

PM / devfreq: Limit max_freq with scaling_min_freq



Limit max_freq in devfreq_get_freq_range() with scaling_min_freq to avoid
showing an unreachable freq when reading it.

Use macro clamp to simplify code.

Signed-off-by: default avatarLifeng Zheng <zhenglifeng1@huawei.com>
Link: https://lore.kernel.org/lkml/20250421030020.3108405-3-zhenglifeng1@huawei.com/


Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 914cc799
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment