From patchwork Thu Jul 20 17:39:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9855489 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 6F7D9600F5 for ; Thu, 20 Jul 2017 17:46:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F13F28828 for ; Thu, 20 Jul 2017 17:46:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 541C32882B; Thu, 20 Jul 2017 17:46:04 +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 0204528828 for ; Thu, 20 Jul 2017 17:46:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965965AbdGTRkj (ORCPT ); Thu, 20 Jul 2017 13:40:39 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36019 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965907AbdGTRkf (ORCPT ); Thu, 20 Jul 2017 13:40:35 -0400 Received: by mail-pf0-f196.google.com with SMTP id a11so2915580pfj.3; Thu, 20 Jul 2017 10:40:35 -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=JWWpI6ISNuMu207ZZdPX4fPZTZsEPCRQT2PZH0HZNsM=; b=Lswh5/K1OBX9+qKczv1MDWZO9I0HTMzM0Fmk9J9r1R5OhcRoLNI7SylbxTQTYTHOQd E6lQ+iFQNYJnEdKhuCHwyWx/Encq90zl32+Yc4TOtO7GxY9KW4B2nBFGG+R6gepflGxm 1tGwbNY/D+ZynbTskT5tA8cVeeP3H3lXTXiq/wk7VS5I6s9WiKH50njmSHpNYcW8lx02 03HDK1XRHqpWThTLy4CN8LAcyzI3eX8hc6uqvjoiwye2VwhNHiZQU25WnDWLJir8klFK WbvtKBxrNvckrdT+0DYZ9PWn83tOTfV3XT1UWVIl+5ftIV2Lcm04TGuPDL46VwGYT+oY r4pA== 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=JWWpI6ISNuMu207ZZdPX4fPZTZsEPCRQT2PZH0HZNsM=; b=OABfFgq94hnfnawD/t2VekFb7WrjirrAI+uVIrOhOJhmJQSuLRe3Tfd8l4sM4lTH/C QqZJnFwo8z5uG5LSVF0xBLGnKo0Id/PEItSHKoB3oPTAbDaPMEGhaNwgbqEnlczcE3Oy gQWMb6HuLSaWn8v9TvUDaLvjuX8v7DF4sQ9zhtjjwmLyzrphaiuGkm/DE5d2NItPXden yx+Mx9JLBipb45XjqIZgRcy3OPY5a75QLnViEXQbbZirf0qqiF6v8xbZ7QU1OrjN/MW4 VXEMDcBO5cWIRA5u3TQmGsKQtPGSPmnTQOERfpC+b8Xuxgh3c5e2KVO6fC+gHwNLJFZm 1KDg== X-Gm-Message-State: AIVw110NzrgpeeIbiYBFQP6zGhzhrpjaGS2C81a/056S5ZYssFXfYOo4 iwqkcyrqPV6g1g== X-Received: by 10.84.210.234 with SMTP id a97mr111904pli.458.1500572435259; Thu, 20 Jul 2017 10:40:35 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.17]) by smtp.gmail.com with ESMTPSA id n90sm6315528pfk.105.2017.07.20.10.40.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 10:40:34 -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 09/28] video: fbdev: skeletonfb: constify pci_device_id. Date: Thu, 20 Jul 2017 23:09:34 +0530 Message-Id: <1500572393-18844-10-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. Signed-off-by: Arvind Yadav --- drivers/video/fbdev/skeletonfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/skeletonfb.c b/drivers/video/fbdev/skeletonfb.c index e219a0a2..09a1d8c 100644 --- a/drivers/video/fbdev/skeletonfb.c +++ b/drivers/video/fbdev/skeletonfb.c @@ -866,7 +866,7 @@ static int xxxfb_resume(struct pci_dev *dev) #define xxxfb_resume NULL #endif /* CONFIG_PM */ -static struct pci_device_id xxxfb_id_table[] = { +static const struct pci_device_id xxxfb_id_table[] = { { PCI_VENDOR_ID_XXX, PCI_DEVICE_ID_XXX, PCI_ANY_ID, PCI_ANY_ID, PCI_BASE_CLASS_DISPLAY << 16, PCI_CLASS_MASK, 0 },