Commit b6ff753a authored by Jani Nikula's avatar Jani Nikula
Browse files

drm: constify fb ops across all drivers



Now that the fbops member of struct fb_info is const, we can start
making the ops const as well.

Cc: dri-devel@lists.freedesktop.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/59b43629ac60031c5bbf961d8c49695019bc9c6f.1575390740.git.jani.nikula@intel.com
parent bf9e25ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ amdgpufb_release(struct fb_info *info, int user)
	return 0;
}

static struct fb_ops amdgpufb_ops = {
static const struct fb_ops amdgpufb_ops = {
	.owner = THIS_MODULE,
	DRM_FB_HELPER_DEFAULT_OPS,
	.fb_open = amdgpufb_open,
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
#include "armada_fb.h"
#include "armada_gem.h"

static /*const*/ struct fb_ops armada_fb_ops = {
static const struct fb_ops armada_fb_ops = {
	.owner		= THIS_MODULE,
	DRM_FB_HELPER_DEFAULT_OPS,
	.fb_fillrect	= drm_fb_helper_cfb_fillrect,
+1 −1
Original line number Diff line number Diff line
@@ -1997,7 +1997,7 @@ static int drm_fbdev_fb_mmap(struct fb_info *info, struct vm_area_struct *vma)
		return -ENODEV;
}

static struct fb_ops drm_fbdev_fb_ops = {
static const struct fb_ops drm_fbdev_fb_ops = {
	.owner		= THIS_MODULE,
	DRM_FB_HELPER_DEFAULT_OPS,
	.fb_open	= drm_fbdev_fb_open,
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ static int exynos_drm_fb_mmap(struct fb_info *info,
	return 0;
}

static struct fb_ops exynos_drm_fb_ops = {
static const struct fb_ops exynos_drm_fb_ops = {
	.owner		= THIS_MODULE,
	DRM_FB_HELPER_DEFAULT_OPS,
	.fb_mmap        = exynos_drm_fb_mmap,
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ static int hibmcfb_create_object(
	return ret;
}

static struct fb_ops hibmc_drm_fb_ops = {
static const struct fb_ops hibmc_drm_fb_ops = {
	.owner = THIS_MODULE,
	.fb_check_var = drm_fb_helper_check_var,
	.fb_set_par = drm_fb_helper_set_par,
Loading