[PATCH net 1/3] net: ethernet: ti: cpsw_ale: Remove obsolete ALE_VERSION_MAJOR/MINOR

Stefan Wiehler posted 3 patches 1 month ago
[PATCH net 1/3] net: ethernet: ti: cpsw_ale: Remove obsolete ALE_VERSION_MAJOR/MINOR
Posted by Stefan Wiehler 1 month ago
These macros are no longer used following the transition to regmaps.

Fixes: bbfc7e2b9ebe ("net: ethernet: ti: cpsw_ale: use regfields for ALE registers")
Signed-off-by: Stefan Wiehler <stefan.wiehler@nokia.com>
---
 drivers/net/ethernet/ti/cpsw_ale.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/ethernet/ti/cpsw_ale.c b/drivers/net/ethernet/ti/cpsw_ale.c
index fbe35af615a6..e13df62448f1 100644
--- a/drivers/net/ethernet/ti/cpsw_ale.c
+++ b/drivers/net/ethernet/ti/cpsw_ale.c
@@ -23,8 +23,6 @@
 
 #define BITMASK(bits)		(BIT(bits) - 1)
 
-#define ALE_VERSION_MAJOR(rev, mask) (((rev) >> 8) & (mask))
-#define ALE_VERSION_MINOR(rev)	(rev & 0xff)
 #define ALE_VERSION_1R3		0x0103
 #define ALE_VERSION_1R4		0x0104
 
-- 
2.42.0