aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/phy_fixed.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2025-11-05 23:09:17 +0100
committerJakub Kicinski <kuba@kernel.org>2025-11-07 18:53:13 -0800
commitf73e0f46bbfab29b111ff52d047f15aa13623972 (patch)
tree767a46aef1e8b20a3a4740c506b376a852e064a3 /include/linux/phy_fixed.h
parentMerge branch 'net-phy-add-open-alliance-tc14-10base-t1s-phy-cable-diagnostic-support' (diff)
downloadwireguard-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 'include/linux/phy_fixed.h')
-rw-r--r--include/linux/phy_fixed.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/phy_fixed.h b/include/linux/phy_fixed.h
index 8bade999831c..436bff20f324 100644
--- a/include/linux/phy_fixed.h
+++ b/include/linux/phy_fixed.h
@@ -5,11 +5,11 @@
#include <linux/types.h>
struct fixed_phy_status {
- int link;
int speed;
int duplex;
- int pause;
- int asym_pause;
+ bool link:1;
+ bool pause:1;
+ bool asym_pause:1;
};
struct device_node;