diff options
| author | Thomas Zimmermann <tzimmermann@suse.de> | 2026-05-27 18:14:02 +0300 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2026-06-09 17:00:10 +0300 |
| commit | 6f611e5e5f3327cf2e2daabe6ee5acac58cc784e (patch) | |
| tree | 60d7cbbfe1df929292644bbf28694f35e230f511 /include | |
| parent | 7958e67375aa111522086286bba13cfc0816ce8d (diff) | |
| download | linux-6f611e5e5f3327cf2e2daabe6ee5acac58cc784e.tar.xz | |
fbdev: Wrap user-invoked calls to fb_set_var() in helper
Handle fbcon during display updates in fb_set_var_from_user(). Check
with fbcon if the mode change is possible, update hardware state and
finally update fbcon. Update all callers.
Only the FBIOPUT_VSCREENINFO ioctl currently does all steps. Other
mode-changes callers in sysfs and driver code are missing fbcon-related
steps.
With the new helper, ps3fb and sh_mobile_lcdcfb no longer maintain
fbcon state themselves.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/fb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h index 5178a33c752c..88680a7cabd5 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -533,6 +533,8 @@ extern int fb_set_var(struct fb_info *info, struct fb_var_screeninfo *var); extern int fb_pan_display(struct fb_info *info, struct fb_var_screeninfo *var); extern int fb_blank(struct fb_info *info, int blank); +int fb_set_var_from_user(struct fb_info *info, struct fb_var_screeninfo *var); + /* * Helpers for framebuffers in I/O memory */ |
