From: Russell King (Oracle) Date: Wed, 8 Jan 2025 16:48:40 +0000 (+0000) Subject: net: stmmac: use boolean for eee_enabled and eee_active X-Git-Tag: v6.14-rc1~162^2~101^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cfd49e5fc30ce96cbaa220406db373cf9565dbe2;p=thirdparty%2Fkernel%2Flinux.git net: stmmac: use boolean for eee_enabled and eee_active priv->eee_enabled and priv->eee_active are both assigned using boolean values. Type them as bool rather than int. Reviewed-by: Andrew Lunn Tested-by: Choong Yong Liang Signed-off-by: Russell King (Oracle) Link: https://patch.msgid.link/E1tVZEW-0002L2-9w@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h index 723ec0d161007..e8dbce20129c1 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac.h +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac.h @@ -305,9 +305,9 @@ struct stmmac_priv { int clk_csr; struct timer_list eee_ctrl_timer; int lpi_irq; - int eee_enabled; - int eee_active; u32 tx_lpi_timer; + bool eee_enabled; + bool eee_active; bool eee_sw_timer_en; unsigned int mode; unsigned int chain_mode;