diff options
author | Lifeng Zheng <zhenglifeng1@huawei.com> | 2025-04-21 11:00:18 +0800 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2025-07-14 20:04:16 +0900 |
commit | 5487f2595bc821348848b0708f42df825d856f9e (patch) | |
tree | 7a2b4ea2aad4dae5369cc0cf170678ddf8cb19f5 /rust/helpers/bug.c | |
parent | 914cc799b28f17d369d5b4db3b941957d18157e8 (diff) |
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: Lifeng Zheng <zhenglifeng1@huawei.com>
Link: https://lore.kernel.org/lkml/20250421030020.3108405-3-zhenglifeng1@huawei.com/
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'rust/helpers/bug.c')
0 files changed, 0 insertions, 0 deletions