diff mbox series

[v2,2/3] include: linux: phy: harmonize phy_id{,_mask} type

Message ID 20171120083417.32558-3-dev@g0hl1n.net
State Changes Requested, archived
Delegated to: David Miller
Headers show
Series net: ethernet: fec: fix refclk enable for SMSC LAN8710/20 | expand

Commit Message

Richard Leitner Nov. 20, 2017, 8:34 a.m. UTC
From: Richard Leitner <richard.leitner@skidata.com>

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 datatype.

Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
---
 include/linux/phy.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/linux/phy.h b/include/linux/phy.h
index dc82a07cb4fd..e00fd9ce3bce 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -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;