From patchwork Sat Aug 19 17:42:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910579 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 AE1CE603FB 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 9F3FD28C28 for ; Sat, 19 Aug 2017 17:44:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93F6428C2F; 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 4076C28C28 for ; Sat, 19 Aug 2017 17:44:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751909AbdHSRmp (ORCPT ); Sat, 19 Aug 2017 13:42:45 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:37259 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751796AbdHSRmm (ORCPT ); Sat, 19 Aug 2017 13:42:42 -0400 Received: by mail-pg0-f67.google.com with SMTP id 83so18728674pgb.4; Sat, 19 Aug 2017 10:42:42 -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=RG0Z6hoHbqrwklV37DfjhzP0tUouY4x4Z9RGqF9jGf4=; b=LibOb9wbqASQik6ogKM7uWztXlfm1YMuzHKr10euvyJL33eUiHWjBpn2lQ0OQU0969 uAEROQ567hgr+ITuqRH7tRUANsGp2d3Ntz2hE/dqkFyegrAgSeTeJ8uQlzWY9FFMUBiW YbyPKZLaex5bktFTHCXFQBeB3eSHsutfzTfQyqoqhqQMmsGb48vNKpNFOfhIJC1VcoWu 3WjqtZwJwHEE3+jvMfkBUR69+skWrwLYNiKefiKdCiJTyr0ltsh3i2X6IlkLgkSAANq5 oTm7M1X91O3C2115t6iYfBegylah7p45Kg9mExfVsYSzOrpuQz0ubgYEr4FS5EBDY/Lr mqYA== 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=RG0Z6hoHbqrwklV37DfjhzP0tUouY4x4Z9RGqF9jGf4=; b=SBTPBtZwu1l7jn+yl9KboGV1p2bu8wToAiz83axObfIlldywnK08gUsCde1Wc3ZtPm S4s+uP9OBnaTuN0GURUq6BLlYIXoec564SXPCuTWVyt+6s/f1KCdg/LcCqsDb+UEhu7A UtRBrZWpYIioGZaq6/H2NiypGfNLvZ2YuflXuEfID5B6CyamM11n0rhC9ww6gXfQtJOg wWBqfsrZKq7c5yTqjKh0soD+0sh0ameJsjIQ+fRQOMXD9v1oIbSeMVB286zHjY5gCohM 8IERwRQYvo/GeKh+ThOevrNVYo+nRvKborM9u/m+VQGht7hJMbOgy3FRAatduYqskNqd phvg== X-Gm-Message-State: AHYfb5huSiqS7uunazI1nsXVhPRS5FCw/UyV8ndGYubH2ygEZlmeG0IN +yC4QFJrB1xXZQ== X-Received: by 10.84.228.193 with SMTP id y1mr6899448pli.267.1503164561978; Sat, 19 Aug 2017 10:42:41 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm11912456pfp.88.2017.08.19.10.42.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Aug 2017 10:42:41 -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 1/8] parisc: asp: constify parisc_device_id Date: Sat, 19 Aug 2017 23:12:19 +0530 Message-Id: <1503164546-31433-2-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/asp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parisc/asp.c b/drivers/parisc/asp.c index 6a1ab25..4ad32e1 100644 --- a/drivers/parisc/asp.c +++ b/drivers/parisc/asp.c @@ -118,7 +118,7 @@ static int __init asp_init_chip(struct parisc_device *dev) return ret; } -static struct parisc_device_id asp_tbl[] = { +static const struct parisc_device_id asp_tbl[] = { { HPHW_BA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00070 }, { 0, } };