From patchwork Sat Aug 19 17:42:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910559 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 95926602A0 for ; Sat, 19 Aug 2017 17:43:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 862732885D for ; Sat, 19 Aug 2017 17:43:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B46228C26; Sat, 19 Aug 2017 17:43:45 +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 36D9D2885D for ; Sat, 19 Aug 2017 17:43:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752246AbdHSRmz (ORCPT ); Sat, 19 Aug 2017 13:42:55 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34040 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752054AbdHSRmx (ORCPT ); Sat, 19 Aug 2017 13:42:53 -0400 Received: by mail-pf0-f195.google.com with SMTP id j83so1439906pfe.1; Sat, 19 Aug 2017 10:42:53 -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=1qqoBphmoJPxlgV5NvaqgMrzK/EubvkESdPLMOAc+RA=; b=ULqp9e0qdpwu7JMNyjWsbtxeisewzc3KddW/w7f6wYv9v0miilGIerAXEMQDf6xnsa mxybXX3jQ1n461qCaBvmOLLf+r9TQnPwVdQBUXmS6wjA7DHyw7x/8sLAbSDCFLrDtPAT GxzprNYhsqHnu6OE16uuvodsFFqHuN1mynwAWgQxngTUcoqyzmkuqUqgaqlgVQiBaekp N+X98lUXclPK3JCDSrjoKuyZOUFrUhLZHi5NQjK+5H7yZpQ109lUPD6Tv9xdE81/QkhU wf0EuvMjQ4Dtv0OhRaZYjDHfEhZ8a9LO4sNHfSX22pEQ/Eud5+0mw654X1bCPtDheiFu u36g== 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=1qqoBphmoJPxlgV5NvaqgMrzK/EubvkESdPLMOAc+RA=; b=Z3BwiMxukRLuIczJGXA3tDUgI9m3XHKPoN02feO9SXKExSMKlMyYZyjbt95yVYP6C/ /a3pUqGlZ0LQSUS+nxME2ObRbJP5qZI4B5T9RSTRIaroxs65XQVeYYyCCwumSjtdMeCz LjxDZMrNXVcydEqX/3doAxno2W5YcdL1HkMr15y9tihVvBb52OmT/fOvstRG3icQzphG fadkbb+EsMWO37LoybMzr8Ouz4tARL+mfMknOqnRWTyPFdolS7ra+cUPJNqi/02/0vdu 1hZWc0TMhik9aZ6zne9BltbbGKxmGTzPuPBm5O9iTU4UMayiURiBD+gtw45tRBYertdO 99Ww== X-Gm-Message-State: AHYfb5jQunBFJGzdgdsGr7IcuiWhrZ4JSIxo2F1nS7lBnOJpR7pTDbXn dTaPMmwRNeCzNdMp X-Received: by 10.84.209.171 with SMTP id y40mr14061169plh.118.1503164572861; Sat, 19 Aug 2017 10:42:52 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm11912456pfp.88.2017.08.19.10.42.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Aug 2017 10:42:52 -0700 (PDT) From: Arvind Yadav To: jejb@parisc-linux.org, deller@gmx.de Cc: linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org Subject: [PATCH 6/8] parisc: lba_pci: constify parisc_device_id Date: Sat, 19 Aug 2017 23:12:24 +0530 Message-Id: <1503164546-31433-7-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503164546-31433-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1503164546-31433-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP parisc_device_id are not supposed to change at runtime. All functions working with parisc_device_id provided by work with const parisc_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/parisc/lba_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c index bc286cb..9d6179e 100644 --- a/drivers/parisc/lba_pci.c +++ b/drivers/parisc/lba_pci.c @@ -1613,7 +1613,7 @@ lba_driver_probe(struct parisc_device *dev) return 0; } -static struct parisc_device_id lba_tbl[] = { +static const struct parisc_device_id lba_tbl[] = { { HPHW_BRIDGE, HVERSION_REV_ANY_ID, ELROY_HVERS, 0xa }, { HPHW_BRIDGE, HVERSION_REV_ANY_ID, MERCURY_HVERS, 0xa }, { HPHW_BRIDGE, HVERSION_REV_ANY_ID, QUICKSILVER_HVERS, 0xa },