Commit 4a3e7142 authored by Thomas Zimmermann's avatar Thomas Zimmermann

fbdev/sm712fb: Do not include <linux/screen_info.h>

Sm712fb's dependency on <linux/screen_info.h> 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 <linux/screen_info.h>.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: Teddy Wang <teddy.wang@siliconmotion.com>
Cc: Helge Deller <deller@gmx.de>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230706104852.27451-3-tzimmermann@suse.de
parent 8b0d1354
...@@ -27,12 +27,17 @@ ...@@ -27,12 +27,17 @@
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/console.h> #include <linux/console.h>
#include <linux/screen_info.h>
#include <linux/pm.h> #include <linux/pm.h>
#include "sm712.h" #include "sm712.h"
struct smtcfb_screen_info {
u16 lfb_width;
u16 lfb_height;
u16 lfb_depth;
};
/* /*
* Private structure * Private structure
*/ */
...@@ -829,7 +834,7 @@ static const struct modeinit vgamode[] = { ...@@ -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; static char *mode_option;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment