[PATCH 5/8] staging: sm750fb: remove unused memory arbitration register definitions
From: Gabriel Windlin <hidden>
Date: 2026-03-03 23:26:00
Also in:
linux-staging, lkml
Subsystem:
staging - silicon motion sm750 frame buffer driver, staging subsystem, the rest · Maintainers:
Sudip Mukherjee, Teddy Wang, Sudip Mukherjee, Greg Kroah-Hartman, Linus Torvalds
The LOCALMEM_ARBITRATION and PCIMEM_ARBITRATION register macros defined in ddk750_reg.h are not referenced anywhere in the driver. Remove them to reduce dead code as noted in the TODO file. Signed-off-by: Gabriel Windlin <redacted> --- drivers/staging/sm750fb/ddk750_reg.h | 132 --------------------------- 1 file changed, 132 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_reg.h b/drivers/staging/sm750fb/ddk750_reg.h
index 24e826c31721..dd1d67fb9856 100644
--- a/drivers/staging/sm750fb/ddk750_reg.h
+++ b/drivers/staging/sm750fb/ddk750_reg.h@@ -77,138 +77,6 @@ #define GPIO_MUX 0x000008 -#define LOCALMEM_ARBITRATION 0x00000C -#define LOCALMEM_ARBITRATION_ROTATE BIT(28) -#define LOCALMEM_ARBITRATION_VGA_MASK (0x7 << 24) -#define LOCALMEM_ARBITRATION_VGA_OFF (0x0 << 24) -#define LOCALMEM_ARBITRATION_VGA_PRIORITY_1 (0x1 << 24) -#define LOCALMEM_ARBITRATION_VGA_PRIORITY_2 (0x2 << 24) -#define LOCALMEM_ARBITRATION_VGA_PRIORITY_3 (0x3 << 24) -#define LOCALMEM_ARBITRATION_VGA_PRIORITY_4 (0x4 << 24) -#define LOCALMEM_ARBITRATION_VGA_PRIORITY_5 (0x5 << 24) -#define LOCALMEM_ARBITRATION_VGA_PRIORITY_6 (0x6 << 24) -#define LOCALMEM_ARBITRATION_VGA_PRIORITY_7 (0x7 << 24) -#define LOCALMEM_ARBITRATION_DMA_MASK (0x7 << 20) -#define LOCALMEM_ARBITRATION_DMA_OFF (0x0 << 20) -#define LOCALMEM_ARBITRATION_DMA_PRIORITY_1 (0x1 << 20) -#define LOCALMEM_ARBITRATION_DMA_PRIORITY_2 (0x2 << 20) -#define LOCALMEM_ARBITRATION_DMA_PRIORITY_3 (0x3 << 20) -#define LOCALMEM_ARBITRATION_DMA_PRIORITY_4 (0x4 << 20) -#define LOCALMEM_ARBITRATION_DMA_PRIORITY_5 (0x5 << 20) -#define LOCALMEM_ARBITRATION_DMA_PRIORITY_6 (0x6 << 20) -#define LOCALMEM_ARBITRATION_DMA_PRIORITY_7 (0x7 << 20) -#define LOCALMEM_ARBITRATION_ZVPORT1_MASK (0x7 << 16) -#define LOCALMEM_ARBITRATION_ZVPORT1_OFF (0x0 << 16) -#define LOCALMEM_ARBITRATION_ZVPORT1_PRIORITY_1 (0x1 << 16) -#define LOCALMEM_ARBITRATION_ZVPORT1_PRIORITY_2 (0x2 << 16) -#define LOCALMEM_ARBITRATION_ZVPORT1_PRIORITY_3 (0x3 << 16) -#define LOCALMEM_ARBITRATION_ZVPORT1_PRIORITY_4 (0x4 << 16) -#define LOCALMEM_ARBITRATION_ZVPORT1_PRIORITY_5 (0x5 << 16) -#define LOCALMEM_ARBITRATION_ZVPORT1_PRIORITY_6 (0x6 << 16) -#define LOCALMEM_ARBITRATION_ZVPORT1_PRIORITY_7 (0x7 << 16) -#define LOCALMEM_ARBITRATION_ZVPORT0_MASK (0x7 << 12) -#define LOCALMEM_ARBITRATION_ZVPORT0_OFF (0x0 << 12) -#define LOCALMEM_ARBITRATION_ZVPORT0_PRIORITY_1 (0x1 << 12) -#define LOCALMEM_ARBITRATION_ZVPORT0_PRIORITY_2 (0x2 << 12) -#define LOCALMEM_ARBITRATION_ZVPORT0_PRIORITY_3 (0x3 << 12) -#define LOCALMEM_ARBITRATION_ZVPORT0_PRIORITY_4 (0x4 << 12) -#define LOCALMEM_ARBITRATION_ZVPORT0_PRIORITY_5 (0x5 << 12) -#define LOCALMEM_ARBITRATION_ZVPORT0_PRIORITY_6 (0x6 << 12) -#define LOCALMEM_ARBITRATION_ZVPORT0_PRIORITY_7 (0x7 << 12) -#define LOCALMEM_ARBITRATION_VIDEO_MASK (0x7 << 8) -#define LOCALMEM_ARBITRATION_VIDEO_OFF (0x0 << 8) -#define LOCALMEM_ARBITRATION_VIDEO_PRIORITY_1 (0x1 << 8) -#define LOCALMEM_ARBITRATION_VIDEO_PRIORITY_2 (0x2 << 8) -#define LOCALMEM_ARBITRATION_VIDEO_PRIORITY_3 (0x3 << 8) -#define LOCALMEM_ARBITRATION_VIDEO_PRIORITY_4 (0x4 << 8) -#define LOCALMEM_ARBITRATION_VIDEO_PRIORITY_5 (0x5 << 8) -#define LOCALMEM_ARBITRATION_VIDEO_PRIORITY_6 (0x6 << 8) -#define LOCALMEM_ARBITRATION_VIDEO_PRIORITY_7 (0x7 << 8) -#define LOCALMEM_ARBITRATION_PANEL_MASK (0x7 << 4) -#define LOCALMEM_ARBITRATION_PANEL_OFF (0x0 << 4) -#define LOCALMEM_ARBITRATION_PANEL_PRIORITY_1 (0x1 << 4) -#define LOCALMEM_ARBITRATION_PANEL_PRIORITY_2 (0x2 << 4) -#define LOCALMEM_ARBITRATION_PANEL_PRIORITY_3 (0x3 << 4) -#define LOCALMEM_ARBITRATION_PANEL_PRIORITY_4 (0x4 << 4) -#define LOCALMEM_ARBITRATION_PANEL_PRIORITY_5 (0x5 << 4) -#define LOCALMEM_ARBITRATION_PANEL_PRIORITY_6 (0x6 << 4) -#define LOCALMEM_ARBITRATION_PANEL_PRIORITY_7 (0x7 << 4) -#define LOCALMEM_ARBITRATION_CRT_MASK 0x7 -#define LOCALMEM_ARBITRATION_CRT_OFF 0x0 -#define LOCALMEM_ARBITRATION_CRT_PRIORITY_1 0x1 -#define LOCALMEM_ARBITRATION_CRT_PRIORITY_2 0x2 -#define LOCALMEM_ARBITRATION_CRT_PRIORITY_3 0x3 -#define LOCALMEM_ARBITRATION_CRT_PRIORITY_4 0x4 -#define LOCALMEM_ARBITRATION_CRT_PRIORITY_5 0x5 -#define LOCALMEM_ARBITRATION_CRT_PRIORITY_6 0x6 -#define LOCALMEM_ARBITRATION_CRT_PRIORITY_7 0x7 - -#define PCIMEM_ARBITRATION 0x000010 -#define PCIMEM_ARBITRATION_ROTATE BIT(28) -#define PCIMEM_ARBITRATION_VGA_MASK (0x7 << 24) -#define PCIMEM_ARBITRATION_VGA_OFF (0x0 << 24) -#define PCIMEM_ARBITRATION_VGA_PRIORITY_1 (0x1 << 24) -#define PCIMEM_ARBITRATION_VGA_PRIORITY_2 (0x2 << 24) -#define PCIMEM_ARBITRATION_VGA_PRIORITY_3 (0x3 << 24) -#define PCIMEM_ARBITRATION_VGA_PRIORITY_4 (0x4 << 24) -#define PCIMEM_ARBITRATION_VGA_PRIORITY_5 (0x5 << 24) -#define PCIMEM_ARBITRATION_VGA_PRIORITY_6 (0x6 << 24) -#define PCIMEM_ARBITRATION_VGA_PRIORITY_7 (0x7 << 24) -#define PCIMEM_ARBITRATION_DMA_MASK (0x7 << 20) -#define PCIMEM_ARBITRATION_DMA_OFF (0x0 << 20) -#define PCIMEM_ARBITRATION_DMA_PRIORITY_1 (0x1 << 20) -#define PCIMEM_ARBITRATION_DMA_PRIORITY_2 (0x2 << 20) -#define PCIMEM_ARBITRATION_DMA_PRIORITY_3 (0x3 << 20) -#define PCIMEM_ARBITRATION_DMA_PRIORITY_4 (0x4 << 20) -#define PCIMEM_ARBITRATION_DMA_PRIORITY_5 (0x5 << 20) -#define PCIMEM_ARBITRATION_DMA_PRIORITY_6 (0x6 << 20) -#define PCIMEM_ARBITRATION_DMA_PRIORITY_7 (0x7 << 20) -#define PCIMEM_ARBITRATION_ZVPORT1_MASK (0x7 << 16) -#define PCIMEM_ARBITRATION_ZVPORT1_OFF (0x0 << 16) -#define PCIMEM_ARBITRATION_ZVPORT1_PRIORITY_1 (0x1 << 16) -#define PCIMEM_ARBITRATION_ZVPORT1_PRIORITY_2 (0x2 << 16) -#define PCIMEM_ARBITRATION_ZVPORT1_PRIORITY_3 (0x3 << 16) -#define PCIMEM_ARBITRATION_ZVPORT1_PRIORITY_4 (0x4 << 16) -#define PCIMEM_ARBITRATION_ZVPORT1_PRIORITY_5 (0x5 << 16) -#define PCIMEM_ARBITRATION_ZVPORT1_PRIORITY_6 (0x6 << 16) -#define PCIMEM_ARBITRATION_ZVPORT1_PRIORITY_7 (0x7 << 16) -#define PCIMEM_ARBITRATION_ZVPORT0_MASK (0x7 << 12) -#define PCIMEM_ARBITRATION_ZVPORT0_OFF (0x0 << 12) -#define PCIMEM_ARBITRATION_ZVPORT0_PRIORITY_1 (0x1 << 12) -#define PCIMEM_ARBITRATION_ZVPORT0_PRIORITY_2 (0x2 << 12) -#define PCIMEM_ARBITRATION_ZVPORT0_PRIORITY_3 (0x3 << 12) -#define PCIMEM_ARBITRATION_ZVPORT0_PRIORITY_4 (0x4 << 12) -#define PCIMEM_ARBITRATION_ZVPORT0_PRIORITY_5 (0x5 << 12) -#define PCIMEM_ARBITRATION_ZVPORT0_PRIORITY_6 (0x6 << 12) -#define PCIMEM_ARBITRATION_ZVPORT0_PRIORITY_7 (0x7 << 12) -#define PCIMEM_ARBITRATION_VIDEO_MASK (0x7 << 8) -#define PCIMEM_ARBITRATION_VIDEO_OFF (0x0 << 8) -#define PCIMEM_ARBITRATION_VIDEO_PRIORITY_1 (0x1 << 8) -#define PCIMEM_ARBITRATION_VIDEO_PRIORITY_2 (0x2 << 8) -#define PCIMEM_ARBITRATION_VIDEO_PRIORITY_3 (0x3 << 8) -#define PCIMEM_ARBITRATION_VIDEO_PRIORITY_4 (0x4 << 8) -#define PCIMEM_ARBITRATION_VIDEO_PRIORITY_5 (0x5 << 8) -#define PCIMEM_ARBITRATION_VIDEO_PRIORITY_6 (0x6 << 8) -#define PCIMEM_ARBITRATION_VIDEO_PRIORITY_7 (0x7 << 8) -#define PCIMEM_ARBITRATION_PANEL_MASK (0x7 << 4) -#define PCIMEM_ARBITRATION_PANEL_OFF (0x0 << 4) -#define PCIMEM_ARBITRATION_PANEL_PRIORITY_1 (0x1 << 4) -#define PCIMEM_ARBITRATION_PANEL_PRIORITY_2 (0x2 << 4) -#define PCIMEM_ARBITRATION_PANEL_PRIORITY_3 (0x3 << 4) -#define PCIMEM_ARBITRATION_PANEL_PRIORITY_4 (0x4 << 4) -#define PCIMEM_ARBITRATION_PANEL_PRIORITY_5 (0x5 << 4) -#define PCIMEM_ARBITRATION_PANEL_PRIORITY_6 (0x6 << 4) -#define PCIMEM_ARBITRATION_PANEL_PRIORITY_7 (0x7 << 4) -#define PCIMEM_ARBITRATION_CRT_MASK 0x7 -#define PCIMEM_ARBITRATION_CRT_OFF 0x0 -#define PCIMEM_ARBITRATION_CRT_PRIORITY_1 0x1 -#define PCIMEM_ARBITRATION_CRT_PRIORITY_2 0x2 -#define PCIMEM_ARBITRATION_CRT_PRIORITY_3 0x3 -#define PCIMEM_ARBITRATION_CRT_PRIORITY_4 0x4 -#define PCIMEM_ARBITRATION_CRT_PRIORITY_5 0x5 -#define PCIMEM_ARBITRATION_CRT_PRIORITY_6 0x6 -#define PCIMEM_ARBITRATION_CRT_PRIORITY_7 0x7 - #define RAW_INT 0x000020 #define RAW_INT_ZVPORT1_VSYNC BIT(4) #define RAW_INT_ZVPORT0_VSYNC BIT(3)
--
2.53.0