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

Subsystems: staging - silicon motion sm750 frame buffer driver, staging subsystem, the rest

STALE532d

3 messages, 2 authors, 2025-02-18 · open the first message on its own page

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

From: Madhur Kumar <hidden>
Date: 2025-02-18 18:59:10

Signed-off-by: Madhur Kumar <redacted>
---
 drivers/staging/sm750fb/sm750.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/sm750fb/sm750.h b/drivers/staging/sm750fb/sm750.h
index 097d6558b7fc..8eab90f0f33b 100644
--- a/drivers/staging/sm750fb/sm750.h
+++ b/drivers/staging/sm750fb/sm750.h
@@ -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 {
-- 
2.48.1

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

From: Madhur Kumar <hidden>
Date: 2025-02-18 18:59:19

Signed-off-by: Madhur Kumar <redacted>
---
 drivers/staging/sm750fb/sm750.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index cab879ab58bd..2cce27effc46 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -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;
-- 
2.48.1

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

From: Dan Carpenter <hidden>
Date: 2025-02-18 19:09:14

On Wed, Feb 19, 2025 at 12:27:48AM +0530, Madhur Kumar wrote:
Signed-off-by: Madhur Kumar <redacted>
---
No commit message.  No v2.  Etc.

regards,
dan carpenter
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help