net: phy: ensure that phy IDs are correctly typed
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 19 Dec 2019 23:24:52 +0000 (23:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Dec 2019 05:48:06 +0000 (21:48 -0800)
commit7d49a32a66d2215c5b3bf9bc67c9036ea9904111
tree76c4a5801dd5d3b302cfee195842d67adc059413
parentd2ed49cf6c13e379c5819aa5ac20e1f9674ebc89
net: phy: ensure that phy IDs are correctly typed

PHY IDs are 32-bit unsigned quantities. Ensure that they are always
treated as such, and not passed around as "int"s.

Fixes: 13d0ab6750b2 ("net: phy: check return code when requesting PHY driver module")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c
include/linux/phy.h