[PATCH 8/8] rust: io: register: remove deprecated relative register rule

From: Alexandre Courbot

Date: Tue Jul 21 2026 - 07:02:59 EST


Now that all users are converted to the new syntax, remove the
deprecated rule for the `Base +` relative register base syntax.

Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
---
rust/kernel/io/register.rs | 20 --------------------
1 file changed, 20 deletions(-)

diff --git a/rust/kernel/io/register.rs b/rust/kernel/io/register.rs
index eeb7f859f8b9..2c88ebf0057e 100644
--- a/rust/kernel/io/register.rs
+++ b/rust/kernel/io/register.rs
@@ -801,26 +801,6 @@ fn into_io_op(self) -> (FixedRegisterLoc<T>, T) {
/// ```
#[macro_export]
macro_rules! register {
- // Deprecated `+` syntax for relative registers and their aliases.
- (
- $(
- $(#[$attr:meta])* $vis:vis $name:ident ($storage:ty)
- $([ $size:expr $(, stride = $stride:expr)? ])?
- $(@ $($base:ident +)? $offset:literal)?
- $(=> $alias:ident $(+ $alias_offset:ty)? $([$alias_idx:expr])? )?
- { $($fields:tt)* }
- )*
- ) => {
- $(
- $crate::register!(
- @reg $(#[$attr])* $vis $name ($storage) $([$size $(, stride = $stride)?])?
- $(@ $($base :)? $offset)?
- $(=> $alias $(: $alias_offset)? $([$alias_idx])? )?
- { $($fields)* }
- );
- )*
- };
-
// Entry point for the macro, allowing multiple registers to be defined in one call.
// It matches all possible register declaration patterns to dispatch them to corresponding
// `@reg` rule that defines a single register.

--
2.55.0