Skip to content

phydm: fix wrong enum type in phydm_clm_racing_ctrl signature - #368

Merged
CGarces merged 1 commit into
Mange:realtek-4.4.xfrom
iav:fix/clm-racing-enum-type-mange
Jul 2, 2026
Merged

phydm: fix wrong enum type in phydm_clm_racing_ctrl signature#368
CGarces merged 1 commit into
Mange:realtek-4.4.xfrom
iav:fix/clm-racing-enum-type-mange

Conversation

@iav

@iav iav commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

phydm_clm_racing_ctrl() declares its level parameter as enum phydm_nhm_level, evidently copy-pasted from phydm_nhm_racing_ctrl(). The function handles CLM (Channel Load Measurement) levels, and its only caller passes clm_para_info.clm_lv, which is enum phydm_clm_level.

This corrects the parameter type to enum phydm_clm_level.

enum phydm_clm_level and enum phydm_nhm_level are numerically identical (RELEASE=0, LV_1..LV_4=1..4, MAX_NUM=5), so there is no behavioral change — this is a type-correctness fix that resolves a -Wenum-conversion compiler warning.

The clm_lv parameter of phydm_clm_racing_ctrl() was declared as
enum phydm_nhm_level, evidently copy-pasted from phydm_nhm_racing_ctrl().
The function handles CLM (Channel Load Measurement) levels and its only
caller passes struct clm_para_info.clm_lv, which is enum phydm_clm_level.

Both enums are numerically identical, so this is a type-correctness fix
with no behavioral change; it resolves a -Wenum-conversion warning.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@CGarces
CGarces merged commit 08ebc76 into Mange:realtek-4.4.x Jul 2, 2026
8 of 10 checks passed
@iav
iav deleted the fix/clm-racing-enum-type-mange branch July 2, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants