fbdev: make fb_ops const
cover fbdev: make fb_ops const
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(-)
Signature · 1 line
1.9.1
PATCH 1/2 fbdev: matrox: make fb_ops const
Make fb_ops const as it is only used during a copy operation. Done using Coccinelle.
--- drivers/video/fbdev/matrox/matroxfb_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/matrox/matroxfb_base.c +1 -1
@@ -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,
Signature · 1 line
1.9.1
PATCH 2/2 fbdev: i810: make fb_ops const
In reply to Bhumika GoyalMake the structure const as it is only used during a copy operation. Done using Coccinelle.
--- drivers/video/fbdev/i810/i810_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/i810/i810_main.c +1 -1
@@ -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,
Signature · 1 line
1.9.1
Re: [PATCH 1/2] fbdev: matrox: make fb_ops const
In reply to Bhumika GoyalQuoted 4 lines · Bhumika Goyal
Make
fb_opsconst as it is only used during a copy operation. Done using Coccinelle.Signed-off-by Bhumika Goyal <[email protected]>
Patch queued for 4.14, thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
Re: [PATCH 2/2] fbdev: i810: make fb_ops const
In reply to Bhumika GoyalQuoted 4 lines · Bhumika Goyal
Make the structure const as it is only used during a copy operation. Done using Coccinelle.
Signed-off-by Bhumika Goyal <[email protected]>
Patch queued for 4.14, thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics