From patchwork Sat Aug 19 17:42:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910577 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 7F3DB603B5 for ; Sat, 19 Aug 2017 17:44:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7021B28C26 for ; Sat, 19 Aug 2017 17:44:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 651A128C2F; Sat, 19 Aug 2017 17:44: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 202AD28C2B for ; Sat, 19 Aug 2017 17:44:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752491AbdHSRoF (ORCPT ); Sat, 19 Aug 2017 13:44:05 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34029 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752020AbdHSRmq (ORCPT ); Sat, 19 Aug 2017 13:42:46 -0400 Received: by mail-pf0-f196.google.com with SMTP id j83so1439828pfe.1; Sat, 19 Aug 2017 10:42:46 -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=nD8tVk031aSaExbAOeVcAhjne9mRGoReXyOoVSvFlrc=; b=kP/AdwZ/x+er0dn6Zy5WGq5mHhNl/UBSkPqXRNvUlG7WdQD3k1ffnZqBSM9BJRBcUr xz+kIWaePCh744zCmYItXwdT/gBlZwly+Z4evpW4EV4nDX1kZHblwDisOIOfN5xKDW1B a5c9T/zMwTA1aFYppRS963hLTTI1QFC3xkZeTgkgjWdlDnNcqsKOKmxEs1fjSSDc5B6U yk2REZO2j7x69SQo7TZ5dAEheflhcQCCHb03K4eqeg6MsSZviLatFkTGOzJcWGj8WqT+ orTq7sl4b+wDTwC18IErVuuSUUD+/06tVo9VAuqL4BQjka+CoyhNgxqpSF3WQQjbmpAO FhRQ== 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=nD8tVk031aSaExbAOeVcAhjne9mRGoReXyOoVSvFlrc=; b=cLqmCzkdbzfY5vqjMH1guyWTVDHq1QLAkhfJmCfMSCGsEOfTx8tAsM22DYTGXX8P8x oy795Lane1qOFDs/AO51mbGShMX8yYKTEsOVh2T2SorCrirDVQ9MyeAFMSPQHYpZ3cph RMkQ2F9TUhXvVHVgUfWyUfVwZ7MhvAIhpJRph2yA9xEVC5QOQeFFTphkr30wjLFZ/iI1 yqGx6RFllZCdEsQr+DQ0/DUuqOR2be6Thi72qliPti5jRG7BMzuvyJKJEFixB2H0q7yx 83fk5aa4fUrc8pNzURfz0HGSAgv/X1b98N5BHCKSTpVyDn+3n7ZEjz68YsxdhhcUrm6r 10aQ== X-Gm-Message-State: AHYfb5gN+15oxeFO19NREct2OaXrSB04Z3q7Dc6hCJ1jFiN1XDKY6Rf+ syYgTK8G3un8KQ== X-Received: by 10.84.131.74 with SMTP id 68mr13325557pld.83.1503164566248; Sat, 19 Aug 2017 10:42:46 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm11912456pfp.88.2017.08.19.10.42.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Aug 2017 10:42:45 -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 3/8] parisc: dino: constify parisc_device_id Date: Sat, 19 Aug 2017 23:12:21 +0530 Message-Id: <1503164546-31433-4-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/dino.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parisc/dino.c b/drivers/parisc/dino.c index 5c63b92..19c5c9a 100644 --- a/drivers/parisc/dino.c +++ b/drivers/parisc/dino.c @@ -1022,7 +1022,7 @@ static int __init dino_probe(struct parisc_device *dev) * and 725 firmware misreport it as 0x08080 for no adequately explained * reason. */ -static struct parisc_device_id dino_tbl[] = { +static const struct parisc_device_id dino_tbl[] = { { HPHW_A_DMA, HVERSION_REV_ANY_ID, 0x004, 0x0009D },/* Card-mode Dino */ { HPHW_A_DMA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x08080 }, /* XXX */ { HPHW_BRIDGE, HVERSION_REV_ANY_ID, 0x680, 0xa }, /* Bridge-mode Dino */