Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9403
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: Yannick Fertre <yannick.fertre@foss.st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240624024113.54850-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>

authored by

Jiapeng Chong and committed by
Raphael Gallais-Pou
98491f02 19dd9780

-5
-5
drivers/gpu/drm/stm/ltdc.c
··· 492 492 return (struct ltdc_device *)plane->dev->dev_private; 493 493 } 494 494 495 - static inline struct ltdc_device *encoder_to_ltdc(struct drm_encoder *enc) 496 - { 497 - return (struct ltdc_device *)enc->dev->dev_private; 498 - } 499 - 500 495 static inline enum ltdc_pix_fmt to_ltdc_pixelformat(u32 drm_fmt) 501 496 { 502 497 enum ltdc_pix_fmt pf;