From patchwork Wed Aug 30 11:40:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9929345 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CD99960380 for ; Wed, 30 Aug 2017 11:41:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1832284B5 for ; Wed, 30 Aug 2017 11:41:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A6603284C4; Wed, 30 Aug 2017 11:41:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5544A284B5 for ; Wed, 30 Aug 2017 11:41:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751532AbdH3Lks (ORCPT ); Wed, 30 Aug 2017 07:40:48 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35740 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751496AbdH3Lkq (ORCPT ); Wed, 30 Aug 2017 07:40:46 -0400 Received: by mail-pf0-f194.google.com with SMTP id g13so4168201pfm.2; Wed, 30 Aug 2017 04:40:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=zHW7nv5cY+yGtPGyf6pgci5/gGf4n0zv1Ox7JWZWacQ=; b=dFFS81eTNBgx06fyJ39XGN5XPTiyZNE1uxn5U+IctjnSm3MVQlvn/53vLWoP7xzSid RMAfpitGaKo8RJIiro957UkN5NFDlPVvH2xKPIxdEjbHmmXwBUDONoFqiXjAvnqQy7PI vUuLI/VEkvN/vhDDREt9CbSkpb1NGiGHXX/eZuvdpje5PUvDlOfa1r033SOI70K9P90k pvKuvyEpasIikZVIwj0S3ZLCz8lre1V94YKm5bNvlSm4gobK9f9qLn7TPfHIx32F8qT5 eLrzeSQwYTYhoYM+Z/q9rWVGcOot4D04vBtq34hYSFvlMRHIOwOXFcz4JklZ0fJCJDvB jfNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zHW7nv5cY+yGtPGyf6pgci5/gGf4n0zv1Ox7JWZWacQ=; b=tTejsrBx/nBZ/wuoKl2BuSbcA6QjpmQPTqFnedZtwxud+pihMg80VrBolTJg/9E7kc 3QZ9LxfqYW4AjaYOmuLMgv8K6PCj3KEkUdZ6BDS/J62kb5kiS7sTHAHDx71e+OcpfzpX EjPIFaQ+uJ9dAbbxUj/NKF6FsWGr7Oqbyii7BwmoVlE+0sIYel0cGJflajw0jrkmRGl6 fjuOuRP1ZnDGBO9aeYOtg40WMTHmANUpTHAEvdyQSYW3xtSqinDEB8SXVzWpapGjM4sR TqBQBMLlaILAlpqNF6ZsQXiD8wfmHs2t2JVhfRRnXoQ65NBwqfGovcPgoMU0sAOPP3J8 IO1A== X-Gm-Message-State: AHYfb5ivMCqkQ2gat2mQBQ/CtLrWYQMYhK2q6eBdjdj/shO0SOQ02V6q Joh0NhXsrhGlew== X-Received: by 10.99.122.69 with SMTP id j5mr1254463pgn.18.1504093245895; Wed, 30 Aug 2017 04:40:45 -0700 (PDT) Received: from gmail.com ([117.196.122.49]) by smtp.gmail.com with ESMTPSA id s80sm9975237pfj.118.2017.08.30.04.40.40 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 30 Aug 2017 04:40:44 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 30 Aug 2017 17:10:37 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, gxt@mprc.pku.edu.cn, b.zolnierkie@samsung.com, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] video: fbdev: make fb_var_screeninfo const Date: Wed, 30 Aug 2017 17:10:28 +0530 Message-Id: <1504093228-7439-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make these const as they are not modified anywhere. Signed-off-by: Bhumika Goyal --- Could not cross compile fb-puv3.o file. drivers/video/fbdev/fb-puv3.c | 2 +- drivers/video/fbdev/maxinefb.c | 2 +- drivers/video/fbdev/pmag-aa-fb.c | 2 +- drivers/video/fbdev/pmag-ba-fb.c | 2 +- drivers/video/fbdev/pmagb-b-fb.c | 2 +- drivers/video/fbdev/pvr2fb.c | 2 +- drivers/video/fbdev/q40fb.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/video/fbdev/fb-puv3.c b/drivers/video/fbdev/fb-puv3.c index 88fa2e7..d9e816d 100644 --- a/drivers/video/fbdev/fb-puv3.c +++ b/drivers/video/fbdev/fb-puv3.c @@ -69,7 +69,7 @@ 0, FB_VMODE_NONINTERLACED, FB_MODE_IS_VESA }, }; -static struct fb_var_screeninfo unifb_default = { +static const struct fb_var_screeninfo unifb_default = { .xres = 640, .yres = 480, .xres_virtual = 640, diff --git a/drivers/video/fbdev/maxinefb.c b/drivers/video/fbdev/maxinefb.c index cab7333..5bb1b5c 100644 --- a/drivers/video/fbdev/maxinefb.c +++ b/drivers/video/fbdev/maxinefb.c @@ -39,7 +39,7 @@ static struct fb_info fb_info; -static struct fb_var_screeninfo maxinefb_defined = { +static const struct fb_var_screeninfo maxinefb_defined = { .xres = 1024, .yres = 768, .xres_virtual = 1024, diff --git a/drivers/video/fbdev/pmag-aa-fb.c b/drivers/video/fbdev/pmag-aa-fb.c index 39922f0..8cbb1d2 100644 --- a/drivers/video/fbdev/pmag-aa-fb.c +++ b/drivers/video/fbdev/pmag-aa-fb.c @@ -67,7 +67,7 @@ struct aafb_par { struct bt431_regs __iomem *bt431; }; -static struct fb_var_screeninfo aafb_defined = { +static const struct fb_var_screeninfo aafb_defined = { .xres = 1280, .yres = 1024, .xres_virtual = 2048, diff --git a/drivers/video/fbdev/pmag-ba-fb.c b/drivers/video/fbdev/pmag-ba-fb.c index 1fd02f4..d88ca10 100644 --- a/drivers/video/fbdev/pmag-ba-fb.c +++ b/drivers/video/fbdev/pmag-ba-fb.c @@ -43,7 +43,7 @@ struct pmagbafb_par { }; -static struct fb_var_screeninfo pmagbafb_defined = { +static const struct fb_var_screeninfo pmagbafb_defined = { .xres = 1024, .yres = 864, .xres_virtual = 1024, diff --git a/drivers/video/fbdev/pmagb-b-fb.c b/drivers/video/fbdev/pmagb-b-fb.c index 46e96c4..d3849cd 100644 --- a/drivers/video/fbdev/pmagb-b-fb.c +++ b/drivers/video/fbdev/pmagb-b-fb.c @@ -44,7 +44,7 @@ struct pmagbbfb_par { }; -static struct fb_var_screeninfo pmagbbfb_defined = { +static const struct fb_var_screeninfo pmagbbfb_defined = { .bits_per_pixel = 8, .red.length = 8, .green.length = 8, diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c index c6212ab..867c521 100644 --- a/drivers/video/fbdev/pvr2fb.c +++ b/drivers/video/fbdev/pvr2fb.c @@ -154,7 +154,7 @@ .accel = FB_ACCEL_NONE, }; -static struct fb_var_screeninfo pvr2_var = { +static const struct fb_var_screeninfo pvr2_var = { .xres = 640, .yres = 480, .xres_virtual = 640, diff --git a/drivers/video/fbdev/q40fb.c b/drivers/video/fbdev/q40fb.c index 04ea330..0b93aa9 100644 --- a/drivers/video/fbdev/q40fb.c +++ b/drivers/video/fbdev/q40fb.c @@ -36,7 +36,7 @@ .accel = FB_ACCEL_NONE, }; -static struct fb_var_screeninfo q40fb_var = { +static const struct fb_var_screeninfo q40fb_var = { .xres = 1024, .yres = 512, .xres_virtual = 1024,