Commit bf9e25ec authored by Jani Nikula's avatar Jani Nikula

video: fbdev: make fbops member of struct fb_info a const pointer

Now that we no longer modify the fbops, or hold non-const pointers to
it, we can make it const. After this, we can start making the fbops
const all over the place.

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/700c6b52c39c6e7babaa921f583eac354714d9fc.1575390740.git.jani.nikula@intel.com
parent 1b78e72b
...@@ -472,7 +472,7 @@ struct fb_info { ...@@ -472,7 +472,7 @@ struct fb_info {
struct fb_deferred_io *fbdefio; struct fb_deferred_io *fbdefio;
#endif #endif
struct fb_ops *fbops; const struct fb_ops *fbops;
struct device *device; /* This is the parent */ struct device *device; /* This is the parent */
struct device *dev; /* This is this fb device */ struct device *dev; /* This is this fb device */
int class_flag; /* private sysfs flags */ int class_flag; /* private sysfs flags */
......
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