]> git.ipfire.org Git - thirdparty/linux.git/commit
net: phy: make phy_device members pause and asym_pause bitfield bits
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 3 Nov 2025 22:26:49 +0000 (23:26 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Nov 2025 02:14:35 +0000 (18:14 -0800)
commit617a0dd24ef2b4e6240df48b1fbac1c3ebfa9282
treed3f4fc88c0f6eaf19cb2f6a8a3db6d0f403e0e49
parentf005b348d36fbe8f6b80c19e2ac6076559493706
net: phy: make phy_device members pause and asym_pause bitfield bits

We can reduce the size of struct phy_device a little by switching
the type of members pause and asym_pause from int to a single bit.
As C99 is supported now, we can use type bool for the bitfield members,
what provides us with the benefit of the usual implicit bool conversions.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/764e9a31-b40b-4dc9-b808-118192a16d87@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy-c45.c
drivers/net/phy/phy_device.c
include/linux/phy.h