drm/stm: ltdc: Remove unused function plane_to_ltdc
Subsystems (4)
PATCH 1/1 drm/stm: ltdc: Remove unused function plane_to_ltdc
The function are defined in the ltdc.c file, but not called anywhere, so delete the unused function.
drivers/gpu/drm/stm/ltdc.c:494:35: warning: unused function 'encoder_to_ltdc'.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/gpu/drm/stm/ltdc.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/gpu/drm/stm/ltdc.c +0 -5
@@ -491,11 +491,6 @@ static inline struct ltdc_device *plane_to_ltdc(struct drm_plane *plane)return (struct ltdc_device *)plane->dev->dev_private; } -static inline struct ltdc_device *encoder_to_ltdc (struct drm_encoder *enc) -{ -return (struct ltdc_device *)enc->dev->dev_private; -} -static inline enum ltdc_pix_fmt to_ltdc_pixelformat (u32 drm_fmt) {enum ltdc_pix_fmt pf;
Signature · 1 line
2.20.1.7.g153144c
Hi Jiapeng,
Thanks for the patch.
Acked-by Yannick Fertre <[email protected]>
Best regards
Le 24/06/2024 à 04:41, Jiapeng Chong a écrit :
Quoted 28 lines
The function are defined in the
ltdc.cfile, but not called anywhere, so delete the unused function.
drivers/gpu/drm/stm/ltdc.c:494:35: warning: unused function 'encoder_to_ltdc'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- drivers/gpu/drm/stm/ltdc.c | 5 ----- 1 file changed, 5 deletions(-)drivers/gpu/drm/stm/ltdc.c +0
-5@@ -491,11 +491,6 @@ static inline struct ltdc_device *plane_to_ltdc(struct drm_plane *plane)return (struct ltdc_device *)plane->dev->dev_private; } -static inline struct ltdc_device *encoder_to_ltdc (struct drm_encoder *enc) -{ -return (struct ltdc_device *)enc->dev->dev_private; -} -static inline enum ltdc_pix_fmt to_ltdc_pixelformat (u32 drm_fmt) {enum ltdc_pix_fmt pf;
Raphael Gallais-Pou
maintainerQuoted 8 lines · Jiapeng Chong
The function are defined in the
ltdc.cfile, but not called anywhere, so delete the unused function.
drivers/gpu/drm/stm/ltdc.c:494:35: warning: unused function 'encoder_to_ltdc'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Hi Jiapeng,
Applied on drm-misc-next.
Thanks,
Raphaël