net: convert users of bitmap_foo() to linkmode_foo()
[linux-2.6-block.git] / drivers / net / dsa / microchip / ksz8795.c
index c5142f86a3c755577ec75729d46464a9d9ffac48..43fc3087aeb3ea5c266b8dfaa4f568662dbe4a80 100644 (file)
@@ -1542,15 +1542,13 @@ static void ksz8_validate(struct dsa_switch *ds, int port,
        phylink_set(mask, 100baseT_Half);
        phylink_set(mask, 100baseT_Full);
 
-       bitmap_and(supported, supported, mask,
-                  __ETHTOOL_LINK_MODE_MASK_NBITS);
-       bitmap_and(state->advertising, state->advertising, mask,
-                  __ETHTOOL_LINK_MODE_MASK_NBITS);
+       linkmode_and(supported, supported, mask);
+       linkmode_and(state->advertising, state->advertising, mask);
 
        return;
 
 unsupported:
-       bitmap_zero(supported, __ETHTOOL_LINK_MODE_MASK_NBITS);
+       linkmode_zero(supported);
        dev_err(ds->dev, "Unsupported interface: %s, port: %d\n",
                phy_modes(state->interface), port);
 }