Skip to content

Commit 4c9f13a

Browse files
prosun786anguy11
authored andcommitted
ice: use string choice helpers
Use string choice helpers for better readability. Reported-by: kernel test robot <[email protected]> Reported-by: Julia Lawall <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Signed-off-by: R Sundar <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 85d6164 commit 4c9f13a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/net/ethernet/intel/ice/ice_ptp_hw.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ static int ice_cfg_cgu_pll_e82x(struct ice_hw *hw,
391391

392392
/* Log the current clock configuration */
393393
ice_debug(hw, ICE_DBG_PTP, "Current CGU configuration -- %s, clk_src %s, clk_freq %s, PLL %s\n",
394-
dw24.ts_pll_enable ? "enabled" : "disabled",
394+
str_enabled_disabled(dw24.ts_pll_enable),
395395
ice_clk_src_str(dw24.time_ref_sel),
396396
ice_clk_freq_str(dw9.time_ref_freq_sel),
397397
bwm_lf.plllock_true_lock_cri ? "locked" : "unlocked");
@@ -469,7 +469,7 @@ static int ice_cfg_cgu_pll_e82x(struct ice_hw *hw,
469469

470470
/* Log the current clock configuration */
471471
ice_debug(hw, ICE_DBG_PTP, "New CGU configuration -- %s, clk_src %s, clk_freq %s, PLL %s\n",
472-
dw24.ts_pll_enable ? "enabled" : "disabled",
472+
str_enabled_disabled(dw24.ts_pll_enable),
473473
ice_clk_src_str(dw24.time_ref_sel),
474474
ice_clk_freq_str(dw9.time_ref_freq_sel),
475475
bwm_lf.plllock_true_lock_cri ? "locked" : "unlocked");
@@ -546,7 +546,7 @@ static int ice_cfg_cgu_pll_e825c(struct ice_hw *hw,
546546

547547
/* Log the current clock configuration */
548548
ice_debug(hw, ICE_DBG_PTP, "Current CGU configuration -- %s, clk_src %s, clk_freq %s, PLL %s\n",
549-
dw24.ts_pll_enable ? "enabled" : "disabled",
549+
str_enabled_disabled(dw24.ts_pll_enable),
550550
ice_clk_src_str(dw23.time_ref_sel),
551551
ice_clk_freq_str(dw9.time_ref_freq_sel),
552552
ro_lock.plllock_true_lock_cri ? "locked" : "unlocked");
@@ -651,7 +651,7 @@ static int ice_cfg_cgu_pll_e825c(struct ice_hw *hw,
651651

652652
/* Log the current clock configuration */
653653
ice_debug(hw, ICE_DBG_PTP, "New CGU configuration -- %s, clk_src %s, clk_freq %s, PLL %s\n",
654-
dw24.ts_pll_enable ? "enabled" : "disabled",
654+
str_enabled_disabled(dw24.ts_pll_enable),
655655
ice_clk_src_str(dw23.time_ref_sel),
656656
ice_clk_freq_str(dw9.time_ref_freq_sel),
657657
ro_lock.plllock_true_lock_cri ? "locked" : "unlocked");

0 commit comments

Comments
 (0)