net: phy: replace bool members in struct phy_device with bit-fields
In struct phy_device we have a number of flags being defined as type bool. Similar to e.g. struct pci_dev we can save some space by using bit-fields. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5c352421c8
commit
87e5808d52
@ -406,13 +406,17 @@ struct phy_device {
|
|||||||
u32 phy_id;
|
u32 phy_id;
|
||||||
|
|
||||||
struct phy_c45_device_ids c45_ids;
|
struct phy_c45_device_ids c45_ids;
|
||||||
bool is_c45;
|
unsigned is_c45:1;
|
||||||
bool is_internal;
|
unsigned is_internal:1;
|
||||||
bool is_pseudo_fixed_link;
|
unsigned is_pseudo_fixed_link:1;
|
||||||
bool has_fixups;
|
unsigned has_fixups:1;
|
||||||
bool suspended;
|
unsigned suspended:1;
|
||||||
bool sysfs_links;
|
unsigned sysfs_links:1;
|
||||||
bool loopback_enabled;
|
unsigned loopback_enabled:1;
|
||||||
|
|
||||||
|
unsigned autoneg:1;
|
||||||
|
/* The most recently read link state */
|
||||||
|
unsigned link:1;
|
||||||
|
|
||||||
enum phy_state state;
|
enum phy_state state;
|
||||||
|
|
||||||
@ -429,9 +433,6 @@ struct phy_device {
|
|||||||
int pause;
|
int pause;
|
||||||
int asym_pause;
|
int asym_pause;
|
||||||
|
|
||||||
/* The most recently read link state */
|
|
||||||
int link;
|
|
||||||
|
|
||||||
/* Enabled Interrupts */
|
/* Enabled Interrupts */
|
||||||
u32 interrupts;
|
u32 interrupts;
|
||||||
|
|
||||||
@ -444,8 +445,6 @@ struct phy_device {
|
|||||||
/* Energy efficient ethernet modes which should be prohibited */
|
/* Energy efficient ethernet modes which should be prohibited */
|
||||||
u32 eee_broken_modes;
|
u32 eee_broken_modes;
|
||||||
|
|
||||||
int autoneg;
|
|
||||||
|
|
||||||
int link_timeout;
|
int link_timeout;
|
||||||
|
|
||||||
#ifdef CONFIG_LED_TRIGGER_PHY
|
#ifdef CONFIG_LED_TRIGGER_PHY
|
||||||
|
Loading…
Reference in New Issue
Block a user