From patchwork Thu Jul 20 17:39:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9855513 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 6602B600F5 for ; Thu, 20 Jul 2017 17:47:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 561542882C for ; Thu, 20 Jul 2017 17:47:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4ACA928831; Thu, 20 Jul 2017 17:47:49 +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 03F3F2882C for ; Thu, 20 Jul 2017 17:47:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934790AbdGTRr3 (ORCPT ); Thu, 20 Jul 2017 13:47:29 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:32827 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965901AbdGTRkW (ORCPT ); Thu, 20 Jul 2017 13:40:22 -0400 Received: by mail-pf0-f193.google.com with SMTP id e199so2914642pfh.0; Thu, 20 Jul 2017 10:40:22 -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=y+WuYWHuJXm/eGrMpSuPpASgN81iq4mDSkaWZCAhUnk=; b=fcRQwvUS/iD2N7fjO95+FGJSuwykv/QxwnHBcIjqHL3RtZXK6FtEpOS4N8J2N3ySCo ZQ2RbQhY3yWimcnqJx/HZcSaHpds5lAcrhrRG8kBK+7jS6AmmX5pllG6a/8+1BbgxaTz Us4bSCUBlvfn8NKUMt76MXf655Cp9ZD1oZFVlpSwLHs0+N3my7GBhopxqVWlUap/x0MH sbnYoIa92bcmrZ+567jW8yfFiZ8FtRFykIRSkjGgncXvVr/Ui9F3giYhQ0Vaud4f/fd/ BTbXcZgH6YnJLxXLFbVX0b4o7DuP1+Hp7R3yxCl4YcwRPwIsUiyreTDdC9Q2RsALb7Mk 5GQA== 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=y+WuYWHuJXm/eGrMpSuPpASgN81iq4mDSkaWZCAhUnk=; b=JsXasdD9QBxVig5Ynf1CkpkIPTzimmUZcz+w/Ek27HRmVCRgZkzjtLjiW37Boji23y nI0bsQLtPODPjqhs7uVzx/o2+qVaXwS1tL2NCNJpm3Wvh7b/O4IDnEytjhJEYqeK9ceD Lo2KDIXn2tkKy7csg8Cc3pfLMnDJMCCKX/aIsHquWCnT9afXjSI+ev/Oe3PgjSiC4Qwo F/8jB2eKkcHArMSF6PgfpBuM2UdaQ7Qlnr/YIpNDxCV3+nWW6st9UtR4oKHify8WU1OS Hja/jboHoAJtqCmkGnGOxxbfodqZevkK2WpTHdQLAbugRfXk6j0ERbu+cj5pEahfzB1G N3xQ== X-Gm-Message-State: AIVw112vmk8CYuv57SDCkrd5EKGW4U2u6xoTOQ0kjzeV0w+9justDm8D sVSV/xWXxmEpmQ== X-Received: by 10.84.142.129 with SMTP id 1mr5110014plx.10.1500572421960; Thu, 20 Jul 2017 10:40:21 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.17]) by smtp.gmail.com with ESMTPSA id n90sm6315528pfk.105.2017.07.20.10.40.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 10:40:21 -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 05/28] video: fbdev: asiliantfb: constify pci_device_id. Date: Thu, 20 Jul 2017 23:09:30 +0530 Message-Id: <1500572393-18844-6-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 4703 512 0 5215 145f drivers/video/fbdev/asiliantfb.o File size After adding 'const': text data bss dec hex filename 4767 448 0 5215 145f drivers/video/fbdev/asiliantfb.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/asiliantfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/asiliantfb.c b/drivers/video/fbdev/asiliantfb.c index 91eea45..ea31054 100644 --- a/drivers/video/fbdev/asiliantfb.c +++ b/drivers/video/fbdev/asiliantfb.c @@ -592,7 +592,7 @@ static void asiliantfb_remove(struct pci_dev *dp) framebuffer_release(p); } -static struct pci_device_id asiliantfb_pci_tbl[] = { +static const struct pci_device_id asiliantfb_pci_tbl[] = { { PCI_VENDOR_ID_CT, PCI_DEVICE_ID_CT_69000, PCI_ANY_ID, PCI_ANY_ID }, { 0 } };