net: phy: harmonize phy_id{,_mask} data type
authorRichard Leitner <richard.leitner@skidata.com>
Mon, 27 Nov 2017 07:16:45 +0000 (08:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Nov 2017 14:26:31 +0000 (09:26 -0500)
Previously phy_id was u32 and phy_id_mask was unsigned int. As the
phy_id_mask defines the important bits of the phy_id (and is therefore
the same size) these two variables should be the same data type.

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/phy.h

index dc82a07cb4fdc797ea8e570d4f32194492203363..e00fd9ce3bce51aa5bc7f10184772aa54c1355e9 100644 (file)
@@ -509,7 +509,7 @@ struct phy_driver {
        struct mdio_driver_common mdiodrv;
        u32 phy_id;
        char *name;
-       unsigned int phy_id_mask;
+       u32 phy_id_mask;
        u32 features;
        u32 flags;
        const void *driver_data;