From patchwork Thu Jul 20 17:39:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9855475 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 57FF6600F5 for ; Thu, 20 Jul 2017 17:44:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46A6428818 for ; Thu, 20 Jul 2017 17:44:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B44C28828; Thu, 20 Jul 2017 17:44:27 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham 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 D9F7528818 for ; Thu, 20 Jul 2017 17:44:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935570AbdGTRoJ (ORCPT ); Thu, 20 Jul 2017 13:44:09 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34853 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965988AbdGTRk5 (ORCPT ); Thu, 20 Jul 2017 13:40:57 -0400 Received: by mail-pf0-f194.google.com with SMTP id q85so2913384pfq.2; Thu, 20 Jul 2017 10:40:57 -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:in-reply-to:references; bh=TxqOmp6YArsRUyYjiXzqwh7KmnSS0V93cOaxepm3L6c=; b=sNXA9juvxLlCg5uZel7nZ4Bt927LSwxUgBiDmE7zNMcl7Abm7y+MqOGzopvAGKJSd0 x+5qY29d8MvDPHjGRHlDtpevgOMl7UujySaDAeJ8h4IDYtrUwqFxWy/vsjmKiP5IlQ0y HfjStrScSrALmev2m+kem3/Cg20Q+qozRqg+uS0I+TQnORYsElwLbOVURBiVyd1IJ5KY RIsZT163ug9KcJvKVQ07k52FPT8Kvs9LhleU63EDcbNsj6hjTZ6IzHZ786zEtX9fN0A2 Y3l7zAVVc3o2N+Flg9nWXR2tPkLV57QEYm02Rff5PxJOrJZCKWcS7ofP6JxjipA2FwQz M4xQ== 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:in-reply-to :references; bh=TxqOmp6YArsRUyYjiXzqwh7KmnSS0V93cOaxepm3L6c=; b=i9B1tJ12WIVyiOueTsUna7W/X9P2c1aYvyYiAJpw6NG9Ixe8ErLnp7O/lGGqBlKLdA jLv7cYW8yBCwIi30QcK8mSw9gFUHB6YfvbEMylXKAvJJprVPA48IfUnPyx7DoUFYwpoe bRuC9xpG5dXKFdBgOnSysDhNe2RbJhIY/ZDVem4iaoBXiAvFuXnGqdNOLnOXn9Wq3Bjo XJnOvGNv2kFidQI2/VTUws7vcw6oVR1giuvvI1UExfRD+tjYJddNkwLHS7G9/G5Zjyhc AxE4s09NdoE8TrDxFvVHvEJ8qLC4uSRmupbGzZlkzH7VGrl6oLevCAtoTuSSUy+k1Jsk YbsA== X-Gm-Message-State: AIVw111rbVWYIs7yMap0KMuVnkeG8Hi9KiNfPUn107lwXNeMX/1mFMG8 auxXNwaU5juBNQ== X-Received: by 10.84.172.131 with SMTP id n3mr5130508plb.14.1500572457189; Thu, 20 Jul 2017 10:40:57 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.17]) by smtp.gmail.com with ESMTPSA id n90sm6315528pfk.105.2017.07.20.10.40.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 10:40:56 -0700 (PDT) From: Arvind Yadav To: b.zolnierkie@samsung.com, paulus@samba.org, benh@kernel.crashing.org, adaplas@gmail.com, mbroemme@libmpq.org, FlorianSchandinat@gmx.de Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 16/28] video: fbdev: vermilion: constify pci_device_id. Date: Thu, 20 Jul 2017 23:09:41 +0530 Message-Id: <1500572393-18844-17-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500572393-18844-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1500572393-18844-1-git-send-email-arvind.yadav.cs@gmail.com> 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 pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: text data bss dec hex filename 7953 568 96 8617 21a9 fbdev/vermilion/vermilion.o File size After adding 'const': text data bss dec hex filename 8017 504 96 8617 21a9 fbdev/vermilion/vermilion.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/vermilion/vermilion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/vermilion/vermilion.c b/drivers/video/fbdev/vermilion/vermilion.c index ce4c472..3fde493 100644 --- a/drivers/video/fbdev/vermilion/vermilion.c +++ b/drivers/video/fbdev/vermilion/vermilion.c @@ -1044,7 +1044,7 @@ static struct fb_ops vmlfb_ops = { .fb_setcolreg = vmlfb_setcolreg }; -static struct pci_device_id vml_ids[] = { +static const struct pci_device_id vml_ids[] = { {PCI_DEVICE(PCI_VENDOR_ID_INTEL, VML_DEVICE_VDC)}, {0} };