]> www.infradead.org Git - users/hch/misc.git/commitdiff
net: stmmac: use boolean for eee_enabled and eee_active
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 8 Jan 2025 16:48:40 +0000 (16:48 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Jan 2025 01:51:02 +0000 (17:51 -0800)
priv->eee_enabled and priv->eee_active are both assigned using boolean
values. Type them as bool rather than int.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Choong Yong Liang <yong.liang.choong@linux.intel.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1tVZEW-0002L2-9w@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac.h

index 723ec0d161007b7240801d83dc2197cb092b422a..e8dbce20129c1564a40c7bd5521c8b95255397dd 100644 (file)
@@ -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;