1 From ebb30ccbbdbd6fae5177b676da4f4ac92bb4f635 Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Fri, 15 Dec 2023 14:15:31 +0100
4 Subject: [PATCH 1/4] net: phy: make addr type u8 in phy_package_shared struct
6 Switch addr type in phy_package_shared struct to u8.
8 The value is already checked to be non negative and to be less than
9 PHY_MAX_ADDR, hence u8 is better suited than using int.
11 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
12 Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
13 Signed-off-by: David S. Miller <davem@davemloft.net>
15 include/linux/phy.h | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
18 --- a/include/linux/phy.h
19 +++ b/include/linux/phy.h
20 @@ -330,7 +330,7 @@ struct mdio_bus_stats {
21 * phy_package_leave().
23 struct phy_package_shared {