History

fbcon: Call fbcon_mode_deleted/new_modelist directly

I'm not entirely clear on what new_modelist actually does, it seems exclusively for a sysfs interface. Which in the end does amount to a normal fb_set_par to check the mode, but then takes a different path in both fbmem.c and fbcon.c. I have no idea why these 2 paths are different, but then I also don't really want to find out. So just do the simple conversion to a direct function call. v2: static inline for the dummy versions, I forgot.

Daniel Vetter committed 7 years ago

Commit 13ff1781 parent 50c50564 files · +16 −31Browse files

Showing the changes to include/linux (2 of 4 files). Show all

Unified · Split

2 files
  1. include/linux/fb.h +0 −5
  2. include/linux/fbcon.h +6 −0
include/linux/fb.h+0−5
@@ -126,8 +126,6 @@ struct fb_cursor_user { · 125 unmodified lines
126126
127127 /* The resolution of the passed in fb_info about to change */
128128 #define FB_EVENT_MODE_CHANGE 0x01
129−/* An entry from the modelist was removed */
130−#define FB_EVENT_MODE_DELETE 0x04
131129
132130 #ifdef CONFIG_GUMSTIX_AM200EPD
133131 /* only used by mach-pxa/am200epd.c */
@@ -142,9 +140,6 @@ struct fb_cursor_user { · 8 unmodified lines
142140 /* A hardware display blank change occurred */
143141 #define FB_EVENT_BLANK 0x09
144142 /* Private modelist is to be replaced */
145−#define FB_EVENT_NEW_MODELIST 0x0A
146−/* The resolution of the passed in fb_info about to change and
147− all vc's should be changed */
148143 #define FB_EVENT_MODE_CHANGE_ALL 0x0B
149144 /* A software display blank change occurred */
150145 #define FB_EVENT_CONBLANK 0x0C
include/linux/fbcon.h+6−0
@@ -9,6 +9,9 @@ void fbcon_fb_unregistered(struct fb_info *info); · 8 unmodified lines
99 void fbcon_fb_unbind(struct fb_info *info);
1010 void fbcon_suspended(struct fb_info *info);
1111 void fbcon_resumed(struct fb_info *info);
12+int fbcon_mode_deleted(struct fb_info *info,
13+ struct fb_videomode *mode);
14+void fbcon_new_modelist(struct fb_info *info);
1215 #else
1316 static inline void fb_console_init(void) {}
1417 static inline void fb_console_exit(void) {}
@@ -17,6 +20,9 @@ static inline void fbcon_fb_unregistered(struct fb_info *info) {} · 2 unmodified lines
1720 static inline void fbcon_fb_unbind(struct fb_info *info) {}
1821 static inline void fbcon_suspended(struct fb_info *info) {}
1922 static inline void fbcon_resumed(struct fb_info *info) {}
23+static inline int fbcon_mode_deleted(struct fb_info *info,
24+ struct fb_videomode *mode) { return 0; }
25+static inline void fbcon_new_modelist(struct fb_info *info) {}
2026 #endif
2127
2228 #endif /* _LINUX_FBCON_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t