aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--drivers/net/phy/fixed_phy.c2
-rw-r--r--include/linux/phy_fixed.h6
2 files changed, 4 insertions, 4 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,
};
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;