Skip to contentSkip to conversation

staging: sm750fb: Remove unnecessary volatile qualifiers from the file

PATCH In review Madhur Kumar 2 participants 3 messages Feb 18, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 staging: sm750fb: Remove unnecessary volatile qualifiers from the file

---
 drivers/staging/sm750fb/sm750.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/sm750fb/sm750.h +3 -3
index 097d6558b7fc..8eab90f0f33b 100644
@@ -50,9 +50,9 @@ struct init_status {
 
 struct lynx_accel {
 	/* base virtual address of DPR registers */
-	volatile unsigned char __iomem *dpr_base;
+	unsigned char __iomem *dpr_base;
 	/* base virtual address of de data port */
-	volatile unsigned char __iomem *dp_port_base;
+	unsigned char __iomem *dp_port_base;
 
 	/* function pointers */
 	void (*de_init)(struct lynx_accel *accel);
@@ -128,7 +128,7 @@ struct lynx_cursor {
 	char __iomem *vstart;
 	int offset;
 	/* mmio addr of hw cursor */
-	volatile char __iomem *mmio;
+	char __iomem *mmio;
 };
 
 struct lynxfb_crtc {
Signature · 1 line
2.48.1
#1 lore raw

PATCH 2/2 staging: sm750fb: Make g_fbmode truly constant

---
 drivers/staging/sm750fb/sm750.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/sm750fb/sm750.c +1 -1
index cab879ab58bd..2cce27effc46 100644
@@ -33,7 +33,7 @@
 static int g_hwcursor = 1;
 static int g_noaccel;
 static int g_nomtrr;
-static const char *g_fbmode[] = {NULL, NULL};
+static const char * const g_fbmode[] = {NULL, NULL};
 static const char *g_def_fbmode = "1024x768-32@60";
 static char *g_settings;
 static int g_dualview;
Signature · 1 line
2.48.1