]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: stmmac: mdio_bus_data->default_an_inband is boolean
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 5 Mar 2026 10:42:57 +0000 (10:42 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Mar 2026 23:39:10 +0000 (15:39 -0800)
default_an_inband is declared as an unsigned int, but is set to true/
false and is assigned to phylink_config's member of the same name
which is a bool. Declare this also as a bool for consistency.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Tested-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/E1vy6AT-0000000BtxD-2qm7@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/stmmac.h

index 2fc169c7117e7b3813015ce8ec22cf4e471ced25..678d03d6d3bd81c055e0c72fe18b81fd58f6a79e 100644 (file)
@@ -86,10 +86,10 @@ struct stmmac_priv;
 struct stmmac_mdio_bus_data {
        unsigned int phy_mask;
        unsigned int pcs_mask;
-       unsigned int default_an_inband;
        int *irqs;
        int probed_phy_irq;
        bool needs_reset;
+       bool default_an_inband;
 };
 
 struct stmmac_dma_cfg {