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


Groups > linux.kernel > #1708355 > unrolled thread

[PATCH 0/2] fbdev: 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 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

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

#1708355 — [PATCH 0/2] fbdev: make fb_ops const

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-08-10 11:20 +0200
Subject[PATCH 0/2] fbdev: make fb_ops const
Message-ID<ucRNf-3Bi-5@gated-at.bofh.it>
Make these const.

Bhumika Goyal (2):
  fbdev: matrox: make fb_ops const
  fbdev: i810: make fb_ops const

 drivers/video/fbdev/i810/i810_main.c       | 2 +-
 drivers/video/fbdev/matrox/matroxfb_base.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
1.9.1

[toc] | [next] | [standalone]


#1708356 — [PATCH 1/2] fbdev: matrox: make fb_ops const

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

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

diff --git a/drivers/video/fbdev/matrox/matroxfb_base.c b/drivers/video/fbdev/matrox/matroxfb_base.c
index 00ea4e4..49ef48d 100644
--- a/drivers/video/fbdev/matrox/matroxfb_base.c
+++ b/drivers/video/fbdev/matrox/matroxfb_base.c
@@ -1198,7 +1198,7 @@ static int matroxfb_blank(int blank, struct fb_info *info)
 	return 0;
 }
 
-static struct fb_ops matroxfb_ops = {
+static const struct fb_ops matroxfb_ops = {
 	.owner =	THIS_MODULE,
 	.fb_open =	matroxfb_open,
 	.fb_release =	matroxfb_release,
-- 
1.9.1

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web