From: Bhumika Goyal Date: Mon, 21 Aug 2017 14:49:58 +0000 (+0200) Subject: fbdev: i810: make fb_ops const X-Git-Tag: v4.14-rc1~25^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8bf25eadb37cedcaedd6099431b95633d487688f;p=thirdparty%2Fkernel%2Flinux.git fbdev: i810: make fb_ops const Make the structure const as it is only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal Cc: Julia Lawall Cc: Antonino Daplas Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/video/fbdev/i810/i810_main.c b/drivers/video/fbdev/i810/i810_main.c index f0a758af07df0..d18f7b31932c8 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,