From: Thomas Zimmermann Date: Thu, 6 Jul 2023 10:42:15 +0000 (+0200) Subject: fbdev/sm712fb: Do not include X-Git-Tag: v6.6.7~1918^2~23^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a3e7142f2fd70f5c320fc7c54f3b7ef017553e5;p=platform%2Fkernel%2Flinux-starfive.git fbdev/sm712fb: Do not include Sm712fb's dependency on is artificial in that it only uses struct screen_info for its internals. Replace the use of struct screen_info with a custom data structure and remove the include of . Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas Cc: Sudip Mukherjee Cc: Teddy Wang Cc: Helge Deller Reviewed-by: Arnd Bergmann Link: https://patchwork.freedesktop.org/patch/msgid/20230706104852.27451-3-tzimmermann@suse.de --- diff --git a/drivers/video/fbdev/sm712fb.c b/drivers/video/fbdev/sm712fb.c index b7ad3c6..f929091 100644 --- a/drivers/video/fbdev/sm712fb.c +++ b/drivers/video/fbdev/sm712fb.c @@ -27,12 +27,17 @@ #include #include #include -#include #include #include "sm712.h" +struct smtcfb_screen_info { + u16 lfb_width; + u16 lfb_height; + u16 lfb_depth; +}; + /* * Private structure */ @@ -829,7 +834,7 @@ static const struct modeinit vgamode[] = { }, }; -static struct screen_info smtc_scr_info; +static struct smtcfb_screen_info smtc_scr_info; static char *mode_option;