video: omapfb: use const pointer for fb_ops
authorJani Nikula <jani.nikula@intel.com>
Fri, 29 Nov 2019 10:29:37 +0000 (12:29 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 3 Dec 2019 09:11:44 +0000 (11:11 +0200)
Use const for fb_ops to let us make the info->fbops pointer const in the
future.

Cc: linux-fbdev@vger.kernel.org
Cc: linux-omap@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/dfa4376e219ffeef9175993eaff91b5fe7ecccab.1575022735.git.jani.nikula@intel.com
drivers/video/fbdev/omap/omapfb_main.c

index 702cca59bda192a730f73648b5edd3b1b55ab533..e8a304f84ea848783a5a2628af7bee0d660d0e84 100644 (file)
@@ -1052,7 +1052,7 @@ static int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd,
 {
        struct omapfb_plane_struct *plane = fbi->par;
        struct omapfb_device    *fbdev = plane->fbdev;
-       struct fb_ops           *ops = fbi->fbops;
+       const struct fb_ops *ops = fbi->fbops;
        union {
                struct omapfb_update_window     update_window;
                struct omapfb_plane_info        plane_info;