From patchwork Sat Aug 19 17:42:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910583 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 E53CA603B5 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 D679728C28 for ; Sat, 19 Aug 2017 17:44:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB97428C26; 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 8A14328C2B for ; Sat, 19 Aug 2017 17:44:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751626AbdHSRoY (ORCPT ); Sat, 19 Aug 2017 13:44:24 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34025 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751892AbdHSRmo (ORCPT ); Sat, 19 Aug 2017 13:42:44 -0400 Received: by mail-pf0-f193.google.com with SMTP id j83so1439791pfe.1; Sat, 19 Aug 2017 10:42:44 -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=iasKKaQyKTnriZ6B9gn1cAYEkyx7e1OjPXnlq8aL1Co=; b=fjE5ddsXYhsbrC1JHHXCks1aWhengPrU3ArpSR79R1yf/fnTrBxg0OABgdVnLQPyiL E0RPOTg0II/excfcUSyoYmkplV1Y8CdiDK/lv5lkBdJZb11EGVTtbtXKo25dcrPB2mTI tPywNNMJf1SyODLSCf5BZxpzdznWIWFpJEWuJmei6yUiM6YmlxnZ0ls2mfNc4B0pVViz ncAVOUl3PMiJe5tpOabpvlx8D9NVNxwQVAd2z8krTL7E9Ae00xfjRVJNOPXa2eV0H9Sb FNYNfPtx7NA6ApJRxIxQX04rQiNKXv1P7nWnVOhnsPt0/7b4SU3DAOOMxbumtO0bfy3t g/EA== 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=iasKKaQyKTnriZ6B9gn1cAYEkyx7e1OjPXnlq8aL1Co=; b=WBAoKIbT5ELbX77sTG34VWv5/11+UWFYK35hsILyWbPEEyHUEn7WAwfcS6RY2jO9/f uWJgCxw+uecDoIoCTL/Y0SLG+zpDamINuSb5lrVNb118R+Hh0EaTykSLACXyYI9rrayI U72iqCYDfJd3G1Cyw3ffB6KBXRMtCfn6HASIsE+pUGJxnZbzCpBzfZG+31YlqxfuF9Jv G3EOuLe8UIIp3PuDlv+7E3uRjckvkrM6vPtMcWOqTDdP5TjQqhDSDiYD1QPoqz/eTr5m DiwUWfjZmmwo84dEzQUjZFrcheeY2f/7MQqLiwycuWCRB/gnIhhi354FAsjqoitB7xLc uYTA== X-Gm-Message-State: AHYfb5hR1AAxYIXVgzeSu9+f+HsMRlvFze2woEXgO+JYVQTDXng2kzcU 2D3Irz2O3wp8XQ== X-Received: by 10.84.218.195 with SMTP id g3mr14121911plm.304.1503164564096; Sat, 19 Aug 2017 10:42:44 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm11912456pfp.88.2017.08.19.10.42.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Aug 2017 10:42:43 -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 2/8] parisc: ccio: constify parisc_device_id Date: Sat, 19 Aug 2017 23:12:20 +0530 Message-Id: <1503164546-31433-3-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/ccio-rm-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parisc/ccio-rm-dma.c b/drivers/parisc/ccio-rm-dma.c index 1bf9880..fc8fbb5 100644 --- a/drivers/parisc/ccio-rm-dma.c +++ b/drivers/parisc/ccio-rm-dma.c @@ -184,7 +184,7 @@ ccio_probe(struct parisc_device *dev) return 0; } -static struct parisc_device_id ccio_tbl[] = { +static const struct parisc_device_id ccio_tbl[] = { { HPHW_BCPORT, HVERSION_REV_ANY_ID, U2_BC_GSC, 0xc }, { HPHW_BCPORT, HVERSION_REV_ANY_ID, UTURN_BC_GSC, 0xc }, { 0, }