From patchwork Thu Jul 20 17:39:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9855467 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 44271600F5 for ; Thu, 20 Jul 2017 17:43:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32A9B287A8 for ; Thu, 20 Jul 2017 17:43:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2782C28827; Thu, 20 Jul 2017 17:43:47 +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 CBD69287A8 for ; Thu, 20 Jul 2017 17:43:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965383AbdGTRnp (ORCPT ); Thu, 20 Jul 2017 13:43:45 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35209 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966047AbdGTRlD (ORCPT ); Thu, 20 Jul 2017 13:41:03 -0400 Received: by mail-pg0-f65.google.com with SMTP id d193so3308682pgc.2; Thu, 20 Jul 2017 10:41:03 -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=EZrNmdi/hGBcXaX002Aco0/kG+H4rPLkVj9CHU+IXiQ=; b=SS7dD9408UDP6yiB3rtpynOhSYwNRNT9lNz0zD9baDqYbzE4BCpNEbVrjIdXFyXQLT k09bFIHldBU3ZiC4DhYisIBMzYSqL3M/QtpHmQSNWWcSaeDTMkHgwky8Jq6adFKvTQLp 7HKMo4md1eZHbARTYpyASGrVGPEF7HrxpcQdcMETLUqp5xfCpzf2gNsjyPbns10Vr+Ph 5/cmx/jxULcjpVYb6s4b4jKG6GKdGMbJsXrpSa+7lJVAWNlIG0BJJWpSqg3F/wBG0V0Q 4GGuvLC1syUHKT3lOpLwMM93ZwwClvgvHNAKiE8kwj2o8Q33uswFBFIkZk08jPaZSd2C bKoQ== 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=EZrNmdi/hGBcXaX002Aco0/kG+H4rPLkVj9CHU+IXiQ=; b=VMdA3PZG1K88UhA+ItrK8OfUD6zpEHVjfJs53q31dlvOwialGDvTryeO+FEd/+kWQr pz1RhZ0ined2KwrvygHkxNqC09qPqbmXJ69y/2Am76NrjkfLtMu5Oteh8iAOSMAxoYre qEgxkCD02WWT7raXrkgDHjTERSPiR2XY24EZV4eIYePWmXYjOcii8snDbUs1m22Uvc7m j631/xVlfUmw6s5Q39gsclmwBmyBZne117UbVex26pc+woFOr+mnFRvK8AnpX6C+6p9s +k9gRwuRZ57gNI4No0jAsufneFYsMmQ7lLOmla73vVYygyC1tXqoXMxmohgBo7foVHal kySg== X-Gm-Message-State: AIVw112yS80EBF+3QRxLfO+toKZzOqz6GROUcEATFTvcWpCUq4RxRmfw 9PPqnUXiCJvEiQ== X-Received: by 10.98.64.129 with SMTP id f1mr4594241pfd.225.1500572463200; Thu, 20 Jul 2017 10:41:03 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.17]) by smtp.gmail.com with ESMTPSA id n90sm6315528pfk.105.2017.07.20.10.41.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 10:41:02 -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 18/28] video: fbdev: mb862xx: constify pci_device_id. Date: Thu, 20 Jul 2017 23:09:43 +0530 Message-Id: <1500572393-18844-19-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 7326 1320 0 8646 21c6 fbdev/mb862xx/mb862xxfbdrv.o File size After adding 'const': text data bss dec hex filename 7454 1192 0 8646 21c6 fbdev/mb862xx/mb862xxfbdrv.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/mb862xx/mb862xxfbdrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c b/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c index f9ec5c0..cd37252 100644 --- a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c +++ b/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c @@ -982,7 +982,7 @@ static inline int mb862xx_pci_gdc_init(struct mb862xxfb_par *par) #define CHIP_ID(id) \ { PCI_DEVICE(PCI_VENDOR_ID_FUJITSU_LIMITED, id) } -static struct pci_device_id mb862xx_pci_tbl[] = { +static const struct pci_device_id mb862xx_pci_tbl[] = { /* MB86295/MB86296 */ CHIP_ID(PCI_DEVICE_ID_FUJITSU_CORALP), CHIP_ID(PCI_DEVICE_ID_FUJITSU_CORALPA),