diff options
author | Andrew Lunn <andrew@lunn.ch> | 2015-06-20 18:42:30 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-23 15:33:40 +0200 |
commit | 80c4627b2719da6b90891d8f83251528416900e7 (patch) | |
tree | a629596d0479d45f91c8ab0366b4ca1878118ebe /drivers/net/dsa/mv88e6xxx.h | |
parent | dsa: mv88e6xxx: Add debugfs interface for ATU (diff) | |
download | linux-80c4627b2719da6b90891d8f83251528416900e7.tar.xz linux-80c4627b2719da6b90891d8f83251528416900e7.zip |
dsa: mv88x6xxx: Refactor getting a single statistic
Move the code to retrieve a statistics counter into a function of its
own, so it can later be reused.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx.h')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h index 8b9c76b66ddb..7cccff202586 100644 --- a/drivers/net/dsa/mv88e6xxx.h +++ b/drivers/net/dsa/mv88e6xxx.h @@ -11,6 +11,10 @@ #ifndef __MV88E6XXX_H #define __MV88E6XXX_H +#ifndef UINT64_MAX +#define UINT64_MAX (u64)(~((u64)0)) +#endif + #define SMI_CMD 0x00 #define SMI_CMD_BUSY BIT(15) #define SMI_CMD_CLAUSE_22 BIT(12) |