From patchwork Thu Jul 20 17:39:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9855457 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 104FD600F5 for ; Thu, 20 Jul 2017 17:43:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F285528818 for ; Thu, 20 Jul 2017 17:43:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5F0128828; Thu, 20 Jul 2017 17:43:12 +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 A246728818 for ; Thu, 20 Jul 2017 17:43:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966084AbdGTRlP (ORCPT ); Thu, 20 Jul 2017 13:41:15 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:38357 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966030AbdGTRlM (ORCPT ); Thu, 20 Jul 2017 13:41:12 -0400 Received: by mail-pf0-f196.google.com with SMTP id c23so2910643pfe.5; Thu, 20 Jul 2017 10:41:12 -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=3enn0XzB+QZz7IH0pnb+IiV3l/ySiIyT24SlS7Fakt4=; b=AAFOQ2BTCChfyrW5jbg2QH91bY7vXK5lNe3Jo58xqPYy0AjeGa7ZbsgKsVA/8rBvFP 3pKNtIpqSUjUTdcYr3qZ5Uk7uFkU2AwHC0n4XyM6LO+oKBDO89Gh+HIcu0HxGugJP3Uy xAlHlKk8oACYlpXWWVEPbOMBR7gDiFoZfGAO/2IaQX0FfR1k+sHPsf52oOE3SIO8uRXE U9AkZXlRMuQ8CxCoq6b0JwRa5tF/o7+KZ7oxBChUKf9c+FMvotvPSjFrIeWls7ooukAE cUEClLWdHyaYnPabc1DLwg8EjfOvqFJqqVYNsyBZHTufUyKVsY41hhD9QMpKJcSquubh CgJg== 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=3enn0XzB+QZz7IH0pnb+IiV3l/ySiIyT24SlS7Fakt4=; b=eaSmTNjfhFgbM9Rd4MdUB7+fNdQ0DShXIdzRy0lGf95oS7Ad5+BTqsma5cDLWhtZuE iIX7YRe7ev7BIOyJCafKsnUddossuyRrj0zBArDPl8mL12N/bhDxEH1IzbR2OwsuiMoy MQllXrPr9naLQ+4keX5Rq/f0FQZLrqvwZZDY93q/MzzJHCv1UToTeHc8cv+j7+csaU9i FsFnmlJ14j+9GG+bfAbfko2FVdZ7KgMlorF/PagfUogkp+LVbOpanp6NBxk+amIGVVUB zbV8ZKHiEeOId4GaXII3OMY8xuPRmfm35nKRzZCpv7WBFTfH7LKdXtM69v/Mmr9oa48E kxkA== X-Gm-Message-State: AIVw111okRqcVblavtiS9m/d4pDYFzX6lEXkPZPCCqfaY4yNsmyHNxOu Hhov0b7tLAaR8A== X-Received: by 10.98.55.5 with SMTP id e5mr4799886pfa.24.1500572472333; Thu, 20 Jul 2017 10:41:12 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.17]) by smtp.gmail.com with ESMTPSA id n90sm6315528pfk.105.2017.07.20.10.41.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 10:41:11 -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 21/28] video: fbdev: imsttfb: constify pci_device_id. Date: Thu, 20 Jul 2017 23:09:46 +0530 Message-Id: <1500572393-18844-22-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 6736 856 0 7592 1da8 drivers/video/fbdev/imsttfb.o File size After adding 'const': text data bss dec hex filename 6832 760 0 7592 1da8 drivers/video/fbdev/imsttfb.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/imsttfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/imsttfb.c b/drivers/video/fbdev/imsttfb.c index 4363c64..ecdcf35 100644 --- a/drivers/video/fbdev/imsttfb.c +++ b/drivers/video/fbdev/imsttfb.c @@ -1318,7 +1318,7 @@ imsttfb_ioctl(struct fb_info *info, u_int cmd, u_long arg) } } -static struct pci_device_id imsttfb_pci_tbl[] = { +static const struct pci_device_id imsttfb_pci_tbl[] = { { PCI_VENDOR_ID_IMS, PCI_DEVICE_ID_IMS_TT128, PCI_ANY_ID, PCI_ANY_ID, 0, 0, IBM }, { PCI_VENDOR_ID_IMS, PCI_DEVICE_ID_IMS_TT3D,