Skip to content

Commit ebb30cc

Browse files
Ansueldavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Russell King (Oracle) <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent dd78428 commit ebb30cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/phy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ struct mdio_bus_stats {
338338
* phy_package_leave().
339339
*/
340340
struct phy_package_shared {
341-
int addr;
341+
u8 addr;
342342
refcount_t refcnt;
343343
unsigned long flags;
344344
size_t priv_size;

0 commit comments

Comments
 (0)