summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLendacky, Thomas <Thomas.Lendacky@amd.com>2015-01-16 12:46:29 -0600
committerDavid S. Miller <davem@davemloft.net>2015-01-16 22:24:19 -0500
commitcb69cb07685c11e8bc346fcda017e847f1658c88 (patch)
tree7f238ff6725c23555796707f04ed56efe82b1ca5
parent1d67d7f6e925af985345e2a93ddc6aeaec3bc354 (diff)
downloadlinux-exynos-cb69cb07685c11e8bc346fcda017e847f1658c88.tar.gz
linux-exynos-cb69cb07685c11e8bc346fcda017e847f1658c88.tar.bz2
linux-exynos-cb69cb07685c11e8bc346fcda017e847f1658c88.zip
amd-xgbe-phy: Checkpatch fixes
This set of patches resolves some checks reported by the checkpatch tool. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/phy/amd-xgbe-phy.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/phy/amd-xgbe-phy.c b/drivers/net/phy/amd-xgbe-phy.c
index 903dc3dc9ea7..b65a0a8f921d 100644
--- a/drivers/net/phy/amd-xgbe-phy.c
+++ b/drivers/net/phy/amd-xgbe-phy.c
@@ -74,6 +74,7 @@
#include <linux/of_platform.h>
#include <linux/of_device.h>
#include <linux/uaccess.h>
+#include <linux/bitops.h>
MODULE_AUTHOR("Tom Lendacky <thomas.lendacky@amd.com>");
MODULE_LICENSE("Dual BSD/GPL");
@@ -90,9 +91,9 @@ MODULE_DESCRIPTION("AMD 10GbE (amd-xgbe) PHY driver");
#define XGBE_AN_PG_RCV 0x04
#define XNP_MCF_NULL_MESSAGE 0x001
-#define XNP_ACK_PROCESSED (1 << 12)
-#define XNP_MP_FORMATTED (1 << 13)
-#define XNP_NP_EXCHANGE (1 << 15)
+#define XNP_ACK_PROCESSED BIT(12)
+#define XNP_MP_FORMATTED BIT(13)
+#define XNP_NP_EXCHANGE BIT(15)
#define XGBE_PHY_RATECHANGE_COUNT 500