diff options
author | Jani Nikula <jani.nikula@intel.com> | 2019-12-03 18:38:53 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2019-12-10 08:52:15 +0200 |
commit | b0077e521c8af7761404ae772a328e5f0bf15094 (patch) | |
tree | 97fc47373dab4111bd1742cb8d68f2c1c44416ec /samples/vfio-mdev | |
parent | 11f39d526ca14d54c24c87c02bca7dc6f0def151 (diff) | |
download | linux-b0077e521c8af7761404ae772a328e5f0bf15094.tar.gz linux-b0077e521c8af7761404ae772a328e5f0bf15094.tar.bz2 linux-b0077e521c8af7761404ae772a328e5f0bf15094.zip |
samples: vfio-mdev: constify fb ops
Now that the fbops member of struct fb_info is const, we can start
making the ops const as well.
v2: fix typo (Christophe de Dinechin)
Cc: Kirti Wankhede <kwankhede@nvidia.com>
Cc: kvm@vger.kernel.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Kirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ddb10df1316ef585930cda7718643a580f4fe37b.1575390741.git.jani.nikula@intel.com
Diffstat (limited to 'samples/vfio-mdev')
-rw-r--r-- | samples/vfio-mdev/mdpy-fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/vfio-mdev/mdpy-fb.c b/samples/vfio-mdev/mdpy-fb.c index 2719bb259653..21dbf63d6e41 100644 --- a/samples/vfio-mdev/mdpy-fb.c +++ b/samples/vfio-mdev/mdpy-fb.c @@ -86,7 +86,7 @@ static void mdpy_fb_destroy(struct fb_info *info) iounmap(info->screen_base); } -static struct fb_ops mdpy_fb_ops = { +static const struct fb_ops mdpy_fb_ops = { .owner = THIS_MODULE, .fb_destroy = mdpy_fb_destroy, .fb_setcolreg = mdpy_fb_setcolreg, |