firmware/br-ext-chip-allwinner/board/v83x/kernel/patches/00000-include_linux_fb.h.patch

19 lines
691 B
Diff

diff -drupN a/include/linux/fb.h b/include/linux/fb.h
--- a/include/linux/fb.h 2018-08-06 17:23:04.000000000 +0300
+++ b/include/linux/fb.h 2022-06-12 05:28:14.000000000 +0300
@@ -643,7 +643,14 @@ extern void fb_pad_aligned_buffer(u8 *ds
extern void fb_set_suspend(struct fb_info *info, int state);
extern int fb_get_color_depth(struct fb_var_screeninfo *var,
struct fb_fix_screeninfo *fix);
+#ifdef CONFIG_FB_CMDLINE
extern int fb_get_options(const char *name, char **option);
+#else
+static inline int fb_get_options(const char *name, char **option)
+{
+ return 0;
+}
+#endif
extern int fb_new_modelist(struct fb_info *info);
extern struct fb_info *registered_fb[FB_MAX];