From patchwork Sat Aug 19 17:42:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910571 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 1F58B602A0 for ; Sat, 19 Aug 2017 17:43:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F82428832 for ; Sat, 19 Aug 2017 17:43:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0423C288AC; Sat, 19 Aug 2017 17:43:52 +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 B79E428832 for ; Sat, 19 Aug 2017 17:43:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752441AbdHSRnk (ORCPT ); Sat, 19 Aug 2017 13:43:40 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34036 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752063AbdHSRmv (ORCPT ); Sat, 19 Aug 2017 13:42:51 -0400 Received: by mail-pf0-f195.google.com with SMTP id j83so1439883pfe.1; Sat, 19 Aug 2017 10:42:51 -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=xnd9v6OXryYmkdtMLXHEddK43svJfIru1+hybqa4h7Q=; b=tA+YBlx49osdcjvEDW3Xn0M/djHhWTcSAG+QuKqyTgFy8Hkw0dUayJoeyQsJlnX+xr zqkfrdHODBfScaH/GexjiRq+SzQvhZ7PLFgados12NW9Tuj8ec0UtPZODQEmzf+htAdB 0m+lmTRGbF3vr0kiVXkNDXSLXEzHIcheqMWD04HvM13/eKU2SQK+SwUVFEkGzOisWQe/ UWbkVTIWGkZCmgyA+wMHHqOK2Nz/Ge4sIMhMruQbY7AyfCQLiaTbPuBXOo4PbdjaEkqp XqfCvXt9b49z9ANnqJyYwaLi8V3LYXPUsV3uKrC15ojxETnezO1x6RXyGAkhtOrWNWCH WIJA== 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=xnd9v6OXryYmkdtMLXHEddK43svJfIru1+hybqa4h7Q=; b=I/td2Wp1VuT/Q/a6Wk3WTCCn37fctot4zqG7QY8m4ImPgHkhuF1yNOZudODyO1evb7 4VE/6lASidx5HXwpeBmfNYuM4inkUt/yVgRbEU8o9GSTJeNrsQfx1oMtOViYg3YpbELW vB+OyhZpFifpfX+oedVsY5YOzU20PKx93IkD/x8OCaBFw+/4tSx5YSCo74Y+tNHEyIoI ck7NZsC0nveGDcWy5NIFrs4CjcFj0VB6KKrPlq9o8wmo/7pFEkduKn/iUm7cFWq1iCVj 8FprQtALw0DHiQ6wXhmubwea7aBtxam+oTmMUIggKbUUrvhEdFCro9mArH+bUxGJneKO pB0Q== X-Gm-Message-State: AHYfb5hNpLuii2DL/edX0T/HTyPwioAvYlmLK+MguqKudj5gDeAfHa4j HWhO5U+6TX9VsW5U X-Received: by 10.84.142.131 with SMTP id 3mr10775679plx.130.1503164570763; Sat, 19 Aug 2017 10:42:50 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm11912456pfp.88.2017.08.19.10.42.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Aug 2017 10:42:50 -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 5/8] parisc: lasi: constify parisc_device_id Date: Sat, 19 Aug 2017 23:12:23 +0530 Message-Id: <1503164546-31433-6-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/lasi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parisc/lasi.c b/drivers/parisc/lasi.c index e65727c..b77cf1e 100644 --- a/drivers/parisc/lasi.c +++ b/drivers/parisc/lasi.c @@ -227,7 +227,7 @@ static int __init lasi_init_chip(struct parisc_device *dev) return ret; } -static struct parisc_device_id lasi_tbl[] = { +static const struct parisc_device_id lasi_tbl[] = { { HPHW_BA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00081 }, { 0, } };