summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-21 16:49:58 +0200
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-08-21 16:49:58 +0200
commit8bf25eadb37cedcaedd6099431b95633d487688f (patch)
treeb6b3576af3825113509fdfe8ff3cda0b1fe5dc1d /drivers/video
parent6ff10485262bf1b9f0e2db4a25287796f6a519c3 (diff)
downloadop-kernel-dev-8bf25eadb37cedcaedd6099431b95633d487688f.zip
op-kernel-dev-8bf25eadb37cedcaedd6099431b95633d487688f.tar.gz
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 <bhumirks@gmail.com> Cc: Julia Lawall <Julia.Lawall@lip6.fr> Cc: Antonino Daplas <adaplas@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/i810/i810_main.c2
1 files changed, 1 insertions, 1 deletions
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,
OpenPOWER on IntegriCloud