Turn fbcon into an internal client of fbdev. Manage all interactions with graphics drivers within fbdev. Add helpers for these tasks and convert drivers.
Fbdev's PS3 and SH-Mobile drivers update fbcon as part of user-invoked mode changes. Call the new helpers, which also fix inconsistencies among the various code paths. Vga-switcheroo remaps the fbcon terminals when switching physical outputs. For now, hide this in another helper. The call will later move into DRM's fbdev emulation. When all refactoring in place, fbdev manages fbcon interactions by itself. Remove the public interfaces. Thomas Zimmermann (4): fbdev: Wrap user-invoked calls to fb_set_var() in helper fbdev: Wrap user-invoked calls to fb_blank() in helper fbdev: Wrap fbcon updates from vga-switcheroo in helper fbdev: Do not export fbcon from fbdev MAINTAINERS | 1 - drivers/gpu/vga/vga_switcheroo.c | 6 +-- drivers/video/fbdev/core/fb_chrdev.c | 12 ++---- drivers/video/fbdev/core/fb_internal.h | 1 + drivers/video/fbdev/core/fbcon.c | 3 -- drivers/video/fbdev/core/fbcon.h | 50 +++++++++++++++++++++++ drivers/video/fbdev/core/fbmem.c | 35 +++++++++++++++- drivers/video/fbdev/core/fbsysfs.c | 9 +---- drivers/video/fbdev/ps3fb.c | 5 +-- drivers/video/fbdev/sh_mobile_lcdcfb.c | 5 +-- include/linux/fb.h | 3 ++ include/linux/fbcon.h | 55 -------------------------- 12 files changed, 98 insertions(+), 87 deletions(-) delete mode 100644 include/linux/fbcon.h base-commit: 121c16f9d8c56ea07263df84ab971cc10870fe88 -- 2.54.0
