Commit 1b78e72b authored by Jani Nikula's avatar Jani Nikula

video: fbdev: uvesafb: modify the static fb_ops directly

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: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/af63cda5de9fee3acd28e7d264f920338298bc0a.1575390740.git.jani.nikula@intel.com
parent 9567a03e
...@@ -1440,7 +1440,7 @@ static void uvesafb_init_info(struct fb_info *info, struct vbe_mode_ib *mode) ...@@ -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. */ /* Disable blanking if the user requested so. */
if (!blank) if (!blank)
info->fbops->fb_blank = NULL; uvesafb_ops.fb_blank = NULL;
/* /*
* Find out how much IO memory is required for the mode with * 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) ...@@ -1510,7 +1510,7 @@ static void uvesafb_init_info(struct fb_info *info, struct vbe_mode_ib *mode)
(par->ypan ? FBINFO_HWACCEL_YPAN : 0); (par->ypan ? FBINFO_HWACCEL_YPAN : 0);
if (!par->ypan) if (!par->ypan)
info->fbops->fb_pan_display = NULL; uvesafb_ops.fb_pan_display = NULL;
} }
static void uvesafb_init_mtrr(struct fb_info *info) static void uvesafb_init_mtrr(struct fb_info *info)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment