diff options
| author | 2025-11-05 23:09:17 +0100 | |
|---|---|---|
| committer | 2025-11-07 18:53:13 -0800 | |
| commit | f73e0f46bbfab29b111ff52d047f15aa13623972 (patch) | |
| tree | 767a46aef1e8b20a3a4740c506b376a852e064a3 /drivers/net/phy/fixed_phy.c | |
| parent | Merge branch 'net-phy-add-open-alliance-tc14-10base-t1s-phy-cable-diagnostic-support' (diff) | |
| download | wireguard-linux-f73e0f46bbfab29b111ff52d047f15aa13623972.tar.xz wireguard-linux-f73e0f46bbfab29b111ff52d047f15aa13623972.zip | |
net: phy: fixed_phy: shrink size of struct fixed_phy_status
All three members are effectively of type bool, so make this explicit
and shrink size of struct fixed_phy_status.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/9eca3d7e-fa64-4724-8fdc-f2c1a8f2ae8f@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/phy/fixed_phy.c')
| -rw-r--r-- | drivers/net/phy/fixed_phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/fixed_phy.c b/drivers/net/phy/fixed_phy.c index d498d8a9bba6..9bd6937411e4 100644 --- a/drivers/net/phy/fixed_phy.c +++ b/drivers/net/phy/fixed_phy.c @@ -224,7 +224,7 @@ EXPORT_SYMBOL_GPL(fixed_phy_register); struct phy_device *fixed_phy_register_100fd(void) { static const struct fixed_phy_status status = { - .link = 1, + .link = true, .speed = SPEED_100, .duplex = DUPLEX_FULL, }; |
