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>pull/1354/merge
parent
ac81130e36
commit
f73e0f46bb
|
|
@ -224,7 +224,7 @@ EXPORT_SYMBOL_GPL(fixed_phy_register);
|
||||||
struct phy_device *fixed_phy_register_100fd(void)
|
struct phy_device *fixed_phy_register_100fd(void)
|
||||||
{
|
{
|
||||||
static const struct fixed_phy_status status = {
|
static const struct fixed_phy_status status = {
|
||||||
.link = 1,
|
.link = true,
|
||||||
.speed = SPEED_100,
|
.speed = SPEED_100,
|
||||||
.duplex = DUPLEX_FULL,
|
.duplex = DUPLEX_FULL,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
struct fixed_phy_status {
|
struct fixed_phy_status {
|
||||||
int link;
|
|
||||||
int speed;
|
int speed;
|
||||||
int duplex;
|
int duplex;
|
||||||
int pause;
|
bool link:1;
|
||||||
int asym_pause;
|
bool pause:1;
|
||||||
|
bool asym_pause:1;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct device_node;
|
struct device_node;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue