fbdev: matrox: make fb_ops const

Make fb_ops const as it is only used during a copy operation.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <[email protected]>
Cc: Julia Lawall <[email protected]>
Cc: Antonino Daplas <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
This commit is contained in:
Bhumika Goyal 2017-08-21 16:49:58 +02:00 • committed by Bartlomiej Zolnierkiewicz
commit 6ff1048526

View file

@ -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,