From patchwork Thu Jul 20 17:39:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9855485 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 2E309600F5 for ; Thu, 20 Jul 2017 17:45:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D27F28828 for ; Thu, 20 Jul 2017 17:45:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1093E2882B; Thu, 20 Jul 2017 17:45:39 +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 A036F28828 for ; Thu, 20 Jul 2017 17:45:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965999AbdGTRku (ORCPT ); Thu, 20 Jul 2017 13:40:50 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:32918 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965907AbdGTRks (ORCPT ); Thu, 20 Jul 2017 13:40:48 -0400 Received: by mail-pf0-f196.google.com with SMTP id e199so2915363pfh.0; Thu, 20 Jul 2017 10:40:48 -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=rleFyyZ6ro7sOXbmFHi1VOr8RqifmFxNkJ8ds1FBo8k=; b=hqH4VJzk9994aEROZUhXkJnkIolK/rAm7GkdhsJ8DY0rNnI/WOCw0lO6GKViE1jPiK wSWJNOqJWgtrUH+DG2h1N+9ViF9F+iYq1BJh8cVerFTC7OY5wNenZPHahEdicYlHNOsk Cq4KOYNuC2jiaY4CO6WOAxg7F5i6+gv2dcWVcPB5INi1ZPsvOa0QwaF1WgRboRwMGagX hbSEEma1gtDQbeYBczT+qsq3W1IRnIZ1fBPVgr57K8MHXkl9FCZveMnfN+rn3rLzF+8v llCc8Aa+ZPBR2A+F/0TwGv7ylCKb0TzEmljyhEW2ewIHAThWJmfNJlfSxNtsnsIC6L+2 V8tQ== 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=rleFyyZ6ro7sOXbmFHi1VOr8RqifmFxNkJ8ds1FBo8k=; b=mt0lKZ3gQu+xF0+CT8T9LMfowc4EgEF/nUXk1Ed7Y7Y6iCEQZ3V3nTSrJfz9Dv3DLw UhNC+8VulAKGtwRm7LdOEAtk8EIVUiXUx8qq+J5zc/GVvZG+ssnkePLM6lLknVZi85HE gvpEaIMoWfvfln+9Uwe20MQQ39O/19H4V8RmLbaMiDAF13jfGNEmWGQSjyKHteAYpljp KLzupbGAWhkEoDJLSn7DqSMYmxUc4VUL+H1vUiCqZoqRrNKGC/Lx7j9pOqR/iRsi3ZmR O9cpL727ORNuRRhWLztTHq1tGoTGysqN67AHAfv4dIVbnNO4p8iyFIyBfD9xQZYMwSGd FcGg== X-Gm-Message-State: AIVw111hL9toevtHm6OK2qXi46HiDfdNY06d4BKeWt5NNubu7RZPNKgM tY78xyUlITLO88s1 X-Received: by 10.98.89.129 with SMTP id k1mr4632830pfj.28.1500572447916; Thu, 20 Jul 2017 10:40:47 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.17]) by smtp.gmail.com with ESMTPSA id n90sm6315528pfk.105.2017.07.20.10.40.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 10:40:47 -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 13/28] video: fbdev: i810: constify pci_device_id. Date: Thu, 20 Jul 2017 23:09:38 +0530 Message-Id: <1500572393-18844-14-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 13132 520 56 13708 358c video/fbdev/i810/i810_main.o File size After adding 'const': text data bss dec hex filename 13356 296 56 13708 358c video/fbdev/i810/i810_main.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/i810/i810_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/i810/i810_main.c b/drivers/video/fbdev/i810/i810_main.c index 2488baa..f0a758a 100644 --- a/drivers/video/fbdev/i810/i810_main.c +++ b/drivers/video/fbdev/i810/i810_main.c @@ -107,7 +107,7 @@ static const char * const i810_pci_list[] = { "Intel(R) 815 (Internal Graphics with AGP) Framebuffer Device" }; -static struct pci_device_id i810fb_pci_tbl[] = { +static const struct pci_device_id i810fb_pci_tbl[] = { { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82810_IG1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82810_IG3,