diff options
author | Jani Nikula <jani.nikula@intel.com> | 2019-12-03 18:38:47 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2019-12-05 10:57:36 +0200 |
commit | bf9e25ec12877a622857460c2f542a6c31393250 (patch) | |
tree | 618afa66587fe96064e49dc161aebb109e35810b /include/linux/fb.h | |
parent | 1b78e72baee87796e37d3a7cab1aded03c91d820 (diff) | |
download | linux-bf9e25ec12877a622857460c2f542a6c31393250.tar.gz linux-bf9e25ec12877a622857460c2f542a6c31393250.tar.bz2 linux-bf9e25ec12877a622857460c2f542a6c31393250.zip |
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: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/700c6b52c39c6e7babaa921f583eac354714d9fc.1575390740.git.jani.nikula@intel.com
Diffstat (limited to 'include/linux/fb.h')
-rw-r--r-- | include/linux/fb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h index a6ad528990de..6557fabdea62 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -472,7 +472,7 @@ struct fb_info { struct fb_deferred_io *fbdefio; #endif - struct fb_ops *fbops; + const struct fb_ops *fbops; struct device *device; /* This is the parent */ struct device *dev; /* This is this fb device */ int class_flag; /* private sysfs flags */ |