OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9567a03
)
video: fbdev: uvesafb: modify the static fb_ops directly
author
Jani Nikula
<jani.nikula@intel.com>
Tue, 3 Dec 2019 16:38:46 +0000
(18:38 +0200)
committer
Jani Nikula
<jani.nikula@intel.com>
Thu, 5 Dec 2019 08:57:31 +0000
(10:57 +0200)
Avoid modifying the fb_ops via info->fbops to let us make the pointer
const in the future.
Cc: linux-fbdev@vger.kernel.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/af63cda5de9fee3acd28e7d264f920338298bc0a.1575390740.git.jani.nikula@intel.com
drivers/video/fbdev/uvesafb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/uvesafb.c
b/drivers/video/fbdev/uvesafb.c
index
439565c
..
53d08d1
100644
(file)
--- a/
drivers/video/fbdev/uvesafb.c
+++ b/
drivers/video/fbdev/uvesafb.c
@@
-1440,7
+1440,7
@@
static void uvesafb_init_info(struct fb_info *info, struct vbe_mode_ib *mode)
/* Disable blanking if the user requested so. */
if (!blank)
-
info->fbops->
fb_blank = NULL;
+
uvesafb_ops.
fb_blank = NULL;
/*
* Find out how much IO memory is required for the mode with
@@
-1510,7
+1510,7
@@
static void uvesafb_init_info(struct fb_info *info, struct vbe_mode_ib *mode)
(par->ypan ? FBINFO_HWACCEL_YPAN : 0);
if (!par->ypan)
-
info->fbops->
fb_pan_display = NULL;
+
uvesafb_ops.
fb_pan_display = NULL;
}
static void uvesafb_init_mtrr(struct fb_info *info)