drm: Remove unused function rcar_cmm_write
PATCH 1/1 drm: Remove unused function rcar_cmm_write
The function are defined in the rcar_cmm.c file, but not called elsewhere, so delete the unused function.
drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c:35:19: warning: unused function 'rcar_cmm_read'.
--- drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c +0 -5
@@ -32,11 +32,6 @@ struct rcar_cmm { } lut; }; -static inline int rcar_cmm_read (struct rcar_cmm *rcmm,u32 reg) -{ -return ioread32 (rcmm->base + reg); -} -static inline void rcar_cmm_write (struct rcar_cmm *rcmm,u32 reg,u32 data) {iowrite32 (data, rcmm->base + reg);
Signature · 1 line
2.20.1.7.g153144c
Quoted 1 line · Jiapeng Chong
The function are defined in the
rcar_cmm.cfile, but not called
s/are/is/.
Quoted 1 line
elsewhere, so delete the unused function.
Anywhere, maybe?
Quoted 5 lines
drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c:35:19: warning: unused function 'rcar_cmm_read'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
[...]
MBR, Sergey
Laurent Pinchart
Reviewed-byQuoted 9 lines · Sergey Shtylyov
Quoted 1 line · Jiapeng Chong
The function are defined in the
rcar_cmm.cfile, but not calleds/are/is/.Quoted 1 line
elsewhere, so delete the unused function.
Anywhere, maybe?
I'll fix those.
Quoted 7 lines
Quoted 5 lines
drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c:35:19: warning: unused function 'rcar_cmm_read'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>[...]
Signature · 3 lines
Regards, Laurent Pinchart
Quoting Jiapeng Chong (2024-06-19 08:54:36)
Quoted 4 lines
The function are defined in the
rcar_cmm.cfile, but not called elsewhere, so delete the unused function.
drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c:35:19: warning: unused function 'rcar_cmm_read'.
Indeed it's unused.
Quoted 26 lines
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c | 5 ----- 1 file changed, 5 deletions(-)drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c +0
-5@@ -32,11 +32,6 @@ struct rcar_cmm { } lut; }; -static inline int rcar_cmm_read (struct rcar_cmm *rcmm,u32 reg) -{ -return ioread32 (rcmm->base + reg); -} -static inline void rcar_cmm_write (struct rcar_cmm *rcmm,u32 reg,u32 data) {iowrite32 (data, rcmm->base + reg);Signature · 1 line
2.20.1.7.g153144c