[PATCH] staging: sm750fb: remove unused macros in sm750_cursor.c

From
Platon Miller <hidden>
Date
2026-11-09 23:14:30
Also in
linux-staging, lkml
The macros HWC_ADDRESS_EXT, HWC_ADDRESS_CS, HWC_LOCATION_TOP, and
HWC_LOCATION_LEFT are defined in sm750_cursor.c but are never used
anywhere in the driver. Remove them to clean up unused code as
specified in drivers/staging/sm750fb/TODO.

Signed-off-by: Platon Miller <redacted>
---
 drivers/staging/sm750fb/sm750_cursor.c | 4 ----
 1 file changed, 4 deletions(-)
diff --git a/drivers/staging/sm750fb/sm750_cursor.c b/drivers/staging/sm750fb/sm750_cursor.c
index f822d147e..571cf86fd 100644
--- a/drivers/staging/sm750fb/sm750_cursor.c
+++ b/drivers/staging/sm750fb/sm750_cursor.c
@@ -10,15 +10,11 @@ writel((data), cursor->mmio + (addr))
 /* cursor control for voyager and 718/750*/
 #define HWC_ADDRESS                         0x0
 #define HWC_ADDRESS_ENABLE                  BIT(31)
-#define HWC_ADDRESS_EXT                     BIT(27)
-#define HWC_ADDRESS_CS                      BIT(26)
 #define HWC_ADDRESS_ADDRESS_MASK            0x3ffffff
 
 #define HWC_LOCATION                        0x4
-#define HWC_LOCATION_TOP                    BIT(27)
 #define HWC_LOCATION_Y_SHIFT                16
 #define HWC_LOCATION_Y_MASK                 (0x7ff << 16)
-#define HWC_LOCATION_LEFT                   BIT(11)
 #define HWC_LOCATION_X_MASK                 0x7ff
 
 #define HWC_COLOR_12                        0x8
-- 
2.56.0
Thread (2 messages) 2 messages, 2 authors, last reply 6d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help