[PATCH 07/13] video: omapfb: use const pointer for fb_ops

From
Jani Nikula <hidden>
Date
2019-11-27 16:32:03
Also in
dri-devel, intel-gfx, linux-omap
Reply to
Jani Nikula, 2019-11-27
Use const for fb_ops to let us make the info->fbops pointer const in the
future.

Cc: <redacted>
Cc: <redacted>
Signed-off-by: Jani Nikula <redacted>
---
 drivers/video/fbdev/omap/omapfb_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/fbdev/omap/omapfb_main.c b/drivers/video/fbdev/omap/omapfb_main.c
index 702cca59bda1..e8a304f84ea8 100644
--- a/drivers/video/fbdev/omap/omapfb_main.c
+++ b/drivers/video/fbdev/omap/omapfb_main.c
@@ -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;
-- 
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