projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b78e72
)
video: fbdev: make fbops member of struct fb_info a const pointer
author
Jani Nikula
<jani.nikula@intel.com>
Tue, 3 Dec 2019 16:38:47 +0000
(18:38 +0200)
committer
Jani Nikula
<jani.nikula@intel.com>
Thu, 5 Dec 2019 08:57:36 +0000
(10:57 +0200)
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
include/linux/fb.h
patch
|
blob
|
history
diff --git
a/include/linux/fb.h
b/include/linux/fb.h
index a6ad528990de4b49a3c023a28dc8400f86d5c29f..6557fabdea6275171996f3a9a1a7d5e6459e5901 100644
(file)
--- 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 */