From patchwork Sat Aug 19 17:42:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910573 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 20768602A0 for ; Sat, 19 Aug 2017 17:43:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F06528832 for ; Sat, 19 Aug 2017 17:43:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0214F288AC; Sat, 19 Aug 2017 17:43:55 +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 9594D28832 for ; Sat, 19 Aug 2017 17:43:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752066AbdHSRmv (ORCPT ); Sat, 19 Aug 2017 13:42:51 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34032 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752054AbdHSRms (ORCPT ); Sat, 19 Aug 2017 13:42:48 -0400 Received: by mail-pf0-f196.google.com with SMTP id j83so1439850pfe.1; Sat, 19 Aug 2017 10:42:48 -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=AQRuxGU1o5v4hwj5Ezcdife2NcdvYyrksfWIpNY7Jbk=; b=X3IkBHtMB9Ft+n8WgHovU5N2nq9RXcxBqPhzA/lYxPdGrP3WtwQOk3YF+Cyd1mraKn ik5UhQUOLy5kc3PsrALXfkRCAksXHLmgwm78BdLbFUuqt0JjZwqp8CvlUoqVS+hhZFJk h1Gc052dqtbCJ2H2z9daaACs8j1tV+pE7gi2/HX5lMlUtFvbeza92vVve1xQxOA9aTm4 2bEGdg3xVBaB832GNEuCd9rnN0FfRQvPEq4noanQF/CTDQHz87WaFGArKMlMJP7KaF4L OY2OrYt0IrGdMNBT4YfN4MXysGocgceV0DLc7cwPpTCRHUhTCTbRjOnKHbGDJs2IW5Gg ZaCA== 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=AQRuxGU1o5v4hwj5Ezcdife2NcdvYyrksfWIpNY7Jbk=; b=JPTlw6CN96L+LOUlItxFA+U/S8xhePIL1A42E0n42hAWacu2TplkCcIldzkYIch+Vq uDfFMOK87GuePkQLCpYZGCq91WZvttp/8gf7HzMpMO47pNsAb6Aovxple11lt4TlS/QE JngOXf1UOytuDBdcxwsvGvLmYj4iXeVmoYy0Zf/4JK4QjtCaXA1HhBdBP1ap9bOuBwK0 4FdhZaBi8ODaHxkyw46w7dLlAXFUYeMbgDxGlRuH0DLQg+IkrcQLQbcmeWy1RmgcppdS 2qInhiARN1YJRTRdLU0E4fGH2hsxq+QLQy8/YaxLKuefDOBEtwxMpVpjJlWFIP3iw7IP J5Gw== X-Gm-Message-State: AHYfb5helDXI+HMlXJl/YuGm0MT2p7PS7kRfroIAbg/tKMeVq5Z3wi4a Fd4zr2lOyJ+3FPuZ X-Received: by 10.84.217.132 with SMTP id p4mr6326592pli.297.1503164568299; Sat, 19 Aug 2017 10:42:48 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm11912456pfp.88.2017.08.19.10.42.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Aug 2017 10:42:47 -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 4/8] parisc: hppb: constify parisc_device_id Date: Sat, 19 Aug 2017 23:12:22 +0530 Message-Id: <1503164546-31433-5-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/hppb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parisc/hppb.c b/drivers/parisc/hppb.c index 898208e..261f826 100644 --- a/drivers/parisc/hppb.c +++ b/drivers/parisc/hppb.c @@ -81,7 +81,7 @@ static int hppb_probe(struct parisc_device *dev) return 0; } -static struct parisc_device_id hppb_tbl[] = { +static const struct parisc_device_id hppb_tbl[] = { { HPHW_BCPORT, HVERSION_REV_ANY_ID, 0x500, 0xc }, /* E25 and K */ { HPHW_BCPORT, 0x0, 0x501, 0xc }, /* E35 */ { HPHW_BCPORT, 0x0, 0x502, 0xc }, /* E45 */