Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1708351 > unrolled thread

[PATCH 2/2] fbdev: i810: make fb_ops const

Started byBhumika Goyal <bhumirks@gmail.com>
First post2017-08-10 11:20 +0200
Last post2017-08-10 11:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/2] fbdev: i810: make fb_ops const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-10 11:20 +0200

#1708351 — [PATCH 2/2] fbdev: i810: make fb_ops const

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-10 11:20 +0200
Subject[PATCH 2/2] fbdev: i810: make fb_ops const
Message-ID<ucRNf-3Bi-3@gated-at.bofh.it>
Make the structure const as it is only used during a copy operation.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/video/fbdev/i810/i810_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/i810/i810_main.c b/drivers/video/fbdev/i810/i810_main.c
index f0a758a..d18f7b3 100644
--- a/drivers/video/fbdev/i810/i810_main.c
+++ b/drivers/video/fbdev/i810/i810_main.c
@@ -1542,7 +1542,7 @@ static int i810fb_cursor(struct fb_info *info, struct fb_cursor *cursor)
 	return 0;
 }
 
-static struct fb_ops i810fb_ops = {
+static const struct fb_ops i810fb_ops = {
 	.owner =             THIS_MODULE,
 	.fb_open =           i810fb_open,
 	.fb_release =        i810fb_release,
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web