From: Sudip Mukherjee Date: Wed, 17 Jun 2015 11:24:40 +0000 (+0530) Subject: staging: sm7xxfb: declare struct as const X-Git-Tag: v4.14-rc1~5163^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d91928c9d70e86635cf34ad11024142f9f73dfc;p=platform%2Fkernel%2Flinux-rpi.git staging: sm7xxfb: declare struct as const The vesa_mode_table is not to be modified, so declare it as const. Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c index 5db26f1..4d9b69d 100644 --- a/drivers/staging/sm7xxfb/sm7xxfb.c +++ b/drivers/staging/sm7xxfb/sm7xxfb.c @@ -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},