Skip to content

Commit

Permalink
net: phy: harmonize phy_id{,_mask} data type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Leitner authored and David S. Miller committed Nov 30, 2017
1 parent 3243ff2 commit 511e303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 511e303

Please sign in to comment.