public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Stefan Wiehler <stefan.wiehler@nokia.com>
To: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: Siddharth Vadapalli <s-vadapalli@ti.com>,
	Roger Quadros <rogerq@kernel.org>,
	linux-omap@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Stefan Wiehler <stefan.wiehler@nokia.com>
Subject: [PATCH net 1/3] net: ethernet: ti: cpsw_ale: Remove obsolete ALE_VERSION_MAJOR/MINOR
Date: Wed,  7 Jan 2026 15:58:17 +0100	[thread overview]
Message-ID: <20260107145846.3144585-2-stefan.wiehler@nokia.com> (raw)
In-Reply-To: <20260107145846.3144585-1-stefan.wiehler@nokia.com>

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


  reply	other threads:[~2026-01-07 14:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-07 14:58 [PATCH net 0/3] cpsw_ale: Remove obsolete macros Stefan Wiehler
2026-01-07 14:58 ` Stefan Wiehler [this message]
2026-01-07 14:58 ` [PATCH net 2/3] net: ethernet: ti: cpsw_ale: Remove obsolete ALE_VERSION_IR3 Stefan Wiehler
2026-01-07 14:58 ` [PATCH net 3/3] net: ethernet: ti: cpsw_ale: Remove obsolete ALE_VERSION_IR4 Stefan Wiehler
2026-01-08 16:12 ` [PATCH net 0/3] cpsw_ale: Remove obsolete macros Jakub Kicinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260107145846.3144585-2-stefan.wiehler@nokia.com \
    --to=stefan.wiehler@nokia.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rogerq@kernel.org \
    --cc=s-vadapalli@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox