mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
staging: sm750fb: remove unnecessary volatile qualifiers
The use of 'volatile' for memory-mapped I/O pointers is discouraged in the Linux kernel as per Documentation/process/volatile-considered-harmful.rst. This patch removes the unnecessary 'volatile' qualifiers from the lynx_accel struct members, improving code quality and maintainability. Signed-off-by: Yiming Qian <qianym1996@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/20250909060130.12919-2-qianym1996@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6f19c1ef7f
commit
02accdf0ca
|
|
@ -50,9 +50,9 @@ struct init_status {
|
|||
|
||||
struct lynx_accel {
|
||||
/* base virtual address of DPR registers */
|
||||
volatile unsigned char __iomem *dprBase;
|
||||
unsigned char __iomem *dprBase;
|
||||
/* base virtual address of de data port */
|
||||
volatile unsigned char __iomem *dpPortBase;
|
||||
unsigned char __iomem *dpPortBase;
|
||||
|
||||
/* 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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user