[PATCH 08/13] video: fbdev: make fbops member of struct fb_info a const pointer

From
Jani Nikula <hidden>
Date
2019-11-27 16:32:04
Also in
dri-devel, intel-gfx
Reply to
Jani Nikula, 2019-11-27
Now that we no longer modify the fbops, or hold non-const pointers to
it, we can make it const. With that, also deferred_io_private needs to
be const. After this, we can start making the fbops const all over the
place.

Cc: <redacted>
Signed-off-by: Jani Nikula <redacted>
---
 include/linux/fb.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/fb.h b/include/linux/fb.h
index 65f2abd47745..efc5376c243a 100644
--- a/include/linux/fb.h
+++ b/include/linux/fb.h
@@ -470,10 +470,10 @@ struct fb_info {
 #ifdef CONFIG_FB_DEFERRED_IO
 	struct delayed_work deferred_work;
 	struct fb_deferred_io *fbdefio;
-	void *deferred_io_private;
+	const void *deferred_io_private;
 #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 */
-- 
2.20.1
Thread (36 messages) 36 messages, 6 authors, last reply 2019-11-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help