net: phy: harmonize phy_id{,_mask} data type
Subsystems (3)
PATCH 1/1 net: phy: harmonize phy_id{,_mask} data type
From: Richard Leitner <[email protected]>
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.
---
This patch is extracted from the "net: ethernet: fec: fix refclk enable for SMSC LAN8710/20" patch series. This was done because this series will be reworked and
rebased on not yet merged feature later on. For more details see:
https://patchwork.ozlabs.org/cover/839468/
--- include/linux/phy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/phy.h +1 -1
@@ -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;
Signature · 1 line
2.11.0
Quoted 7 lines · Richard Leitner
From: Richard Leitner <[email protected]>
Previously
phy_idwas u32 andphy_id_maskwas unsigned int. As thephy_id_maskdefines the important bits of thephy_id(and is therefore the same size) these two variables should be the same data type.Signed-off-by Richard Leitner <[email protected]>
Hi Richard
netdev is closed at the moment for patches, due to the merge window being open. Please repost next week.
Andrew
Quoted 7 lines · Richard Leitner
From: Richard Leitner <[email protected]>
Previously
phy_idwas u32 andphy_id_maskwas unsigned int. As thephy_id_maskdefines the important bits of thephy_id(and is therefore the same size) these two variables should be the same data type.Signed-off-by Richard Leitner <[email protected]>
Thanks!
Quoted 23 lines
---
This patch is extracted from the "net: ethernet: fec: fix refclk enable for SMSC LAN8710/20" patch series. This was done because this series will be reworked and
rebased on not yet merged feature later on. For more details see:
https://patchwork.ozlabs.org/cover/839468/--- include/linux/phy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/phy.h +1
-1@@ -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;
Signature · 1 line
Florian