summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Einon <mark.einon@gmail.com>2011-09-25 19:17:53 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-26 17:39:15 -0700
commit66a0cc1a02054a53ae8e6d1af0870d4ab799416d (patch)
treef1ecb7c6124b30e78b7394407a97a3be8d474853
parent8e0ae3d55a1daebc97ef2631b0cdf2cdef5572db (diff)
staging: et131x: Add link status to adapter struct
This will be used to determine if the link state has changed when the phydev informs the et131x that a change has occurred (in et131x_adjust_link) Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/et131x/et131x_adapter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/et131x/et131x_adapter.h b/drivers/staging/et131x/et131x_adapter.h
index 78f2894d76e..fabc2c593b3 100644
--- a/drivers/staging/et131x/et131x_adapter.h
+++ b/drivers/staging/et131x/et131x_adapter.h
@@ -147,6 +147,9 @@ struct et131x_adapter {
/* Flags that indicate current state of the adapter */
u32 flags;
+ /* local link state, to determine if a state change has occurred */
+ int link;
+
/* Configuration */
u8 rom_addr[ETH_ALEN];
u8 addr[ETH_ALEN];