Remove macros which are not used in the driver. No functional change.
Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Jerome Forissier <[email protected]>
Cc: Joe Hershberger <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Paul Barker <[email protected]>
Cc: Ramon Fried <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
drivers/net/rswitch.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/net/rswitch.c b/drivers/net/rswitch.c
index 5f8e95d4d64..3f9052e0a89 100644
--- a/drivers/net/rswitch.c
+++ b/drivers/net/rswitch.c
@@ -27,9 +27,6 @@
#define RSWITCH_SLEEP_US 1000
#define RSWITCH_TIMEOUT_US 1000000
-#define RSWITCH_NUM_HW 5
-
-#define ETHA_TO_GWCA(i) ((i) % 2)
#define GWCA_TO_HW_INDEX(i) ((i) + 3)
#define HW_INDEX_TO_GWCA(i) ((i) - 3)
@@ -207,11 +204,6 @@ struct rswitch_gwca {
int num_chain;
};
-/* Setting value */
-#define LINK_SPEED_100 100
-#define LINK_SPEED_1000 1000
-#define LINK_SPEED_2500 2500
-
/* Decriptor */
#define RSWITCH_NUM_BASE_DESC 2
#define RSWITCH_TX_CHAIN_INDEX 0
--
2.51.0