From patchwork Thu Jul 20 17:39:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9855483 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 3B8F9600F5 for ; Thu, 20 Jul 2017 17:45:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A213286DD for ; Thu, 20 Jul 2017 17:45:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E8B028827; Thu, 20 Jul 2017 17:45:28 +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 CAB74286DD for ; Thu, 20 Jul 2017 17:45:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935915AbdGTRpM (ORCPT ); Thu, 20 Jul 2017 13:45:12 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36804 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966004AbdGTRkv (ORCPT ); Thu, 20 Jul 2017 13:40:51 -0400 Received: by mail-pg0-f66.google.com with SMTP id y129so3312380pgy.3; Thu, 20 Jul 2017 10:40:51 -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=o4hSC4P0gbhLaB2b9BXc12Q2h6MVIF4nSqrfEZ/iaCM=; b=lOCmrLEz8Mmrkp9GT+0lcibsI5hku8oWMVa2PRAoMo/cx8jpK6vggMgEjmjRBfEFns NmNsqcxCf2tat6c97N6gwA1385PRaO1suPvfZFsikEDdEnq+lRXCRJWCHJrhBujygdoV WiDtBfz0Lq0g6sqL7YaICvUEi090UtzbO3aPuO+rqIUQUfk4bk+4hj8Ew3m/3gvOv/8u z7+PfJPzZHJ6xHAEqj7yme1Iw9B6Dd9RJVk0hetIX5WiY6/3q4P/svECY9/PB5sAo43O v6dNJzyOfs4nCzAftAPPs3tRj8W4hXG3SjzeB49DwfFaPciyqjbCvMi6zSdqH5ueYGVl mZwQ== 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=o4hSC4P0gbhLaB2b9BXc12Q2h6MVIF4nSqrfEZ/iaCM=; b=NZFD846JukOdB1H+U118FfDpR/lMg4EOStkF33eiH11KcQLPNlVu2ABBZng2rRV7Ut t3Kq0xWdoVuLbTHLifGukcpwHM7KKf7IFTv4mdLgc5qPMmJlaXYa8HcjsA94wvbF9INz fn3rVAcF1fdWS/N0qFFO1S3dnlsaVNxJZQMTAsJOMqTmhQo35DEUVLMCUaCJ9tg4YQ1q ynVUyceT/PoZz6Ufbx3RnkcPRAjXMN9SaP6vBx/WyUYe/kpQXY8b4ecdPzqKMc+WJWF1 05wWMGNGQiBnpjMVRynh2QcQgZM9G63STEOjLk0pGfPjSK/vPFcjiIXZaL6PnkmyUg1R TmWg== X-Gm-Message-State: AIVw112xqrjbuptJjknSjFtmO4H+JqVzSec1ujqO39o58dMOpOsTls0R eNPNbSYHCVJ9/w== X-Received: by 10.84.217.208 with SMTP id d16mr5077389plj.208.1500572451161; Thu, 20 Jul 2017 10:40:51 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.17]) by smtp.gmail.com with ESMTPSA id n90sm6315528pfk.105.2017.07.20.10.40.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 10:40:50 -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 14/28] video: fbdev: arkfb: constify pci_device_id. Date: Thu, 20 Jul 2017 23:09:39 +0530 Message-Id: <1500572393-18844-15-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 12511 1920 0 14431 385f drivers/video/fbdev/arkfb.o File size After adding 'const': text data bss dec hex filename 12607 1824 0 14431 385f drivers/video/fbdev/arkfb.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/arkfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/arkfb.c b/drivers/video/fbdev/arkfb.c index 6a317de..13ba371 100644 --- a/drivers/video/fbdev/arkfb.c +++ b/drivers/video/fbdev/arkfb.c @@ -1157,7 +1157,7 @@ static int ark_pci_resume (struct pci_dev* dev) /* List of boards that we are trying to support */ -static struct pci_device_id ark_devices[] = { +static const struct pci_device_id ark_devices[] = { {PCI_DEVICE(0xEDD8, 0xA099)}, {0, 0, 0, 0, 0, 0, 0} };