mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
fbdev: Call fbcon_get_requirement directly
Pretty simple case really. v2: Forgot to remove a break; v3: Add static inline to the dummy versions. Signed-off-by: Daniel Vetter <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Reviewed-by: Maarten Lankhorst <[email protected]> Cc: Bartlomiej Zolnierkiewicz <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Hans de Goede <[email protected]> Cc: "Steven Rostedt (VMware)" <[email protected]> Cc: Prarit Bhargava <[email protected]> Cc: Kees Cook <[email protected]> Cc: Yisheng Xie <[email protected]> Cc: "Michał Mirosław" <[email protected]> Cc: Peter Rosin <[email protected]> Cc: Mikulas Patocka <[email protected]> Cc: [email protected] Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
parent
13ff178ccd
commit
0526c2239a
4 changed files with 7 additions and 13 deletions
|
|
@ -3283,8 +3283,8 @@ void fbcon_new_modelist(struct fb_info *info)
|
|||
}
|
||||
}
|
||||
|
||||
static void fbcon_get_requirement(struct fb_info *info,
|
||||
struct fb_blit_caps *caps)
|
||||
void fbcon_get_requirement(struct fb_info *info,
|
||||
struct fb_blit_caps *caps)
|
||||
{
|
||||
struct vc_data *vc;
|
||||
struct fbcon_display *p;
|
||||
|
|
@ -3325,7 +3325,6 @@ static int fbcon_event_notify(struct notifier_block *self,
|
|||
struct fb_event *event = data;
|
||||
struct fb_info *info = event->info;
|
||||
struct fb_con2fbmap *con2fb;
|
||||
struct fb_blit_caps *caps;
|
||||
int idx, ret = 0;
|
||||
|
||||
switch(action) {
|
||||
|
|
@ -3348,10 +3347,6 @@ static int fbcon_event_notify(struct notifier_block *self,
|
|||
case FB_EVENT_BLANK:
|
||||
fbcon_fb_blanked(info, *(int *)event->data);
|
||||
break;
|
||||
case FB_EVENT_GET_REQ:
|
||||
caps = event->data;
|
||||
fbcon_get_requirement(info, caps);
|
||||
break;
|
||||
case FB_EVENT_REMAP_ALL_CONSOLE:
|
||||
idx = info->node;
|
||||
fbcon_remap_all(idx);
|
||||
|
|
|
|||
|
|
@ -932,16 +932,13 @@ EXPORT_SYMBOL(fb_pan_display);
|
|||
static int fb_check_caps(struct fb_info *info, struct fb_var_screeninfo *var,
|
||||
u32 activate)
|
||||
{
|
||||
struct fb_event event;
|
||||
struct fb_blit_caps caps, fbcaps;
|
||||
int err = 0;
|
||||
|
||||
memset(&caps, 0, sizeof(caps));
|
||||
memset(&fbcaps, 0, sizeof(fbcaps));
|
||||
caps.flags = (activate & FB_ACTIVATE_ALL) ? 1 : 0;
|
||||
event.info = info;
|
||||
event.data = ∩︀
|
||||
fb_notifier_call_chain(FB_EVENT_GET_REQ, &event);
|
||||
fbcon_get_requirement(info, &caps);
|
||||
info->fbops->fb_get_caps(info, &fbcaps, var);
|
||||
|
||||
if (((fbcaps.x ^ caps.x) & caps.x) ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue