Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: phy: make addr type u8 in phy_package_shared struct

Switch addr type in phy_package_shared struct to u8.

The value is already checked to be non negative and to be less than
PHY_MAX_ADDR, hence u8 is better suited than using int.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Christian Marangi and committed by
David S. Miller
ebb30ccb dd784287

+1 -1
+1 -1
include/linux/phy.h
··· 338 338 * phy_package_leave(). 339 339 */ 340 340 struct phy_package_shared { 341 - int addr; 341 + u8 addr; 342 342 refcount_t refcnt; 343 343 unsigned long flags; 344 344 size_t priv_size;