staging: sm7xxfb: declare struct as const
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Wed, 17 Jun 2015 11:24:40 +0000 (16:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Jun 2015 04:44:29 +0000 (21:44 -0700)
The vesa_mode_table is not to be modified, so declare it as const.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm7xxfb/sm7xxfb.c

index 5db26f16569c3440e59e8b5bceeb26e5e48a78d9..4d9b69d26166e3c995e8e3d4484ebd16fcc2c911 100644 (file)
@@ -94,7 +94,7 @@ struct vesa_mode {
        u16  lfb_depth;
 };
 
-static struct vesa_mode vesa_mode_table[] = {
+static const struct vesa_mode vesa_mode_table[] = {
        {"0x301", 640,  480,  8},
        {"0x303", 800,  600,  8},
        {"0x305", 1024, 768,  8},