History

Merge tag 'fbdev-v5.3' of git://github.com/bzolnier/linux

Pull fbdev updates from Bartlomiej Zolnierkiewicz: - remove fbdev notifier usage for fbcon (as prep work to clean up the fbcon locking), add locking checks in vt/console code and make assorted cleanups in fbdev and backlight code (Daniel Vetter) - add COMPILE_TEST support to atmel_lcdfb, da8xx-fb, gbefb, imxfb, pvr2fb and pxa168fb drivers (me) - fix DMA API abuse in au1200fb and jz4740_fb drivers (Christoph Hellwig) - add check for new BGRT status field rotation bits in efifb driver (Hans de Goede) - mark expected switch fall-throughs in s3c-fb driver (Gustavo A. R. Silva) - remove fbdev mxsfb driver in favour of the drm version (Fabio Estevam) - remove broken rfbi code from omap2fb driver (me) - misc fixes (Arnd Bergmann, Shobhit Kukreti, Wei Yongjun, me) - misc cleanups (Gustavo A. R. Silva, Colin Ian King, me) * tag 'fbdev-v5.3' of git://github.com/bzolnier/linux: (62 commits) video: fbdev: imxfb: fix a typo in imxfb_probe() video: fbdev: s3c-fb: Mark expected switch fall-throughs video: fbdev: s3c-fb: fix sparse warnings about using incorrect types video: fbdev: don't print error message on framebuffer_alloc() failure video: fbdev: intelfb: return -ENOMEM on framebuffer_alloc() failure video: fbdev: s3c-fb: return -ENOMEM on framebuffer_alloc() failure vga_switcheroo: Depend upon fbcon being built-in, if enabled video: fbdev: omap2: remove rfbi video: fbdev: atmel_lcdfb: remove redundant initialization to variable ret video: fbdev-MMP: Use struct_size() in devm_kzalloc() video: fbdev: controlfb: fix warnings about comparing pointer to 0 efifb: BGRT: Add check for new BGRT status field rotation bits jz4740_fb: fix DMA API abuse video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit video: fbdev: s3c-fb: add COMPILE_TEST support video: fbdev: imxfb: fix sparse warnings about using incorrect types video: fbdev: pvr2fb: fix build warning when compiling as module fbcon: Export fbcon_update_vcs backlight: simplify lcd notifier staging/olpc_dcon: Add drm conversion to TODO ...

Linus Torvalds committed 7 years ago

Commit 2d41ef52 parents ed63b9c 732146a82 files · +582 −3259Browse files

Showing the changes to include/linux (3 of 82 files). Show all

Unified · Split

3 files
  1. include/linux/console_struct.h +1 −4
  2. include/linux/fb.h +12 −33
  3. include/linux/fbcon.h +30 −0
include/linux/console_struct.h+1−4
@@ -168,9 +168,6 @@ extern void vc_SAK(struct work_struct *work); · 167 unmodified lines
168168
169169 #define CUR_DEFAULT CUR_UNDERLINE
170170
171−static inline bool con_is_visible(const struct vc_data *vc)
172−{
173− return *vc->vc_display_fg == vc;
174−}
171+bool con_is_visible(const struct vc_data *vc);
175172
176173 #endif /* _LINUX_CONSOLE_STRUCT_H */
include/linux/fb.h+12−33
@@ -126,39 +126,15 @@ 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−/* The display on this fb_info is being suspended, no access to the
130− * framebuffer is allowed any more after that call returns
131− */
132−#define FB_EVENT_SUSPEND 0x02
133−/* The display on this fb_info was resumed, you can restore the display
134− * if you own it
135− */
136−#define FB_EVENT_RESUME 0x03
137−/* An entry from the modelist was removed */
138−#define FB_EVENT_MODE_DELETE 0x04
139−/* A driver registered itself */
129+
130+#ifdef CONFIG_GUMSTIX_AM200EPD
131+/* only used by mach-pxa/am200epd.c */
140132 #define FB_EVENT_FB_REGISTERED 0x05
141−/* A driver unregistered itself */
142133 #define FB_EVENT_FB_UNREGISTERED 0x06
143−/* CONSOLE-SPECIFIC: get console to framebuffer mapping */
144−#define FB_EVENT_GET_CONSOLE_MAP 0x07
145−/* CONSOLE-SPECIFIC: set console to framebuffer mapping */
146−#define FB_EVENT_SET_CONSOLE_MAP 0x08
147−/* A hardware display blank change occurred */
134+#endif
135+
136+/* A display blank is requested */
148137 #define FB_EVENT_BLANK 0x09
149−/* Private modelist is to be replaced */
150−#define FB_EVENT_NEW_MODELIST 0x0A
151−/* The resolution of the passed in fb_info about to change and
152− all vc's should be changed */
153−#define FB_EVENT_MODE_CHANGE_ALL 0x0B
154−/* A software display blank change occurred */
155−#define FB_EVENT_CONBLANK 0x0C
156−/* Get drawing requirements */
157−#define FB_EVENT_GET_REQ 0x0D
158−/* Unbind from the console if possible */
159−#define FB_EVENT_FB_UNBIND 0x0E
160−/* CONSOLE-SPECIFIC: remap all consoles to new fb - for vga_switcheroo */
161−#define FB_EVENT_REMAP_ALL_CONSOLE 0x0F
162138 /* A hardware display blank early change occurred */
163139 #define FB_EARLY_EVENT_BLANK 0x10
164140 /* A hardware display blank revert early change occurred */
@@ -633,8 +609,8 @@ extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf, · 468 unmodified lines
633609
634610 /* drivers/video/fbmem.c */
635611 extern int register_framebuffer(struct fb_info *fb_info);
636−extern int unregister_framebuffer(struct fb_info *fb_info);
637−extern int unlink_framebuffer(struct fb_info *fb_info);
612+extern void unregister_framebuffer(struct fb_info *fb_info);
613+extern void unlink_framebuffer(struct fb_info *fb_info);
638614 extern int remove_conflicting_pci_framebuffers(struct pci_dev *pdev, int res_id,
639615 const char *name);
640616 extern int remove_conflicting_framebuffers(struct apertures_struct *a,
@@ -660,7 +636,10 @@ extern struct class *fb_class; · 19 unmodified lines
660636 for (i = 0; i < FB_MAX; i++) \
661637 if (!registered_fb[i]) {} else
662638
663−extern int lock_fb_info(struct fb_info *info);
639+static inline void lock_fb_info(struct fb_info *info)
640+{
641+ mutex_lock(&info->lock);
642+}
664643
665644 static inline void unlock_fb_info(struct fb_info *info)
666645 {
include/linux/fbcon.h+30−0
@@ -4,9 +4,39 @@ · 3 unmodified lines
44 #ifdef CONFIG_FRAMEBUFFER_CONSOLE
55 void __init fb_console_init(void);
66 void __exit fb_console_exit(void);
7+int fbcon_fb_registered(struct fb_info *info);
8+void fbcon_fb_unregistered(struct fb_info *info);
9+void fbcon_fb_unbind(struct fb_info *info);
10+void fbcon_suspended(struct fb_info *info);
11+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);
15+void fbcon_get_requirement(struct fb_info *info,
16+ struct fb_blit_caps *caps);
17+void fbcon_fb_blanked(struct fb_info *info, int blank);
18+void fbcon_update_vcs(struct fb_info *info, bool all);
19+void fbcon_remap_all(struct fb_info *info);
20+int fbcon_set_con2fb_map_ioctl(void __user *argp);
21+int fbcon_get_con2fb_map_ioctl(void __user *argp);
722 #else
823 static inline void fb_console_init(void) {}
924 static inline void fb_console_exit(void) {}
25+static inline int fbcon_fb_registered(struct fb_info *info) { return 0; }
26+static inline void fbcon_fb_unregistered(struct fb_info *info) {}
27+static inline void fbcon_fb_unbind(struct fb_info *info) {}
28+static inline void fbcon_suspended(struct fb_info *info) {}
29+static inline void fbcon_resumed(struct fb_info *info) {}
30+static inline int fbcon_mode_deleted(struct fb_info *info,
31+ struct fb_videomode *mode) { return 0; }
32+static inline void fbcon_new_modelist(struct fb_info *info) {}
33+static inline void fbcon_get_requirement(struct fb_info *info,
34+ struct fb_blit_caps *caps) {}
35+static inline void fbcon_fb_blanked(struct fb_info *info, int blank) {}
36+static inline void fbcon_update_vcs(struct fb_info *info, bool all) {}
37+static inline void fbcon_remap_all(struct fb_info *info) {}
38+static inline int fbcon_set_con2fb_map_ioctl(void __user *argp) { return 0; }
39+static inline int fbcon_get_con2fb_map_ioctl(void __user *argp) { return 0; }
1040 #endif
1141
1242 #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