]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31d3b2b134259f67defab98c93444d896308fa15
tree76c4a5801dd5d3b302cfee195842d67adc059413
parent60e3baf75441789e2d205c7a37c07f37139575cf
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: f1807410f434 ("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