From patchwork Sat Aug 19 17:42:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910557 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 71B74603B5 for ; Sat, 19 Aug 2017 17:43:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 627E728C02 for ; Sat, 19 Aug 2017 17:43:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5769428C31; Sat, 19 Aug 2017 17:43: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 DB8A928C26 for ; Sat, 19 Aug 2017 17:43:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752359AbdHSRnP (ORCPT ); Sat, 19 Aug 2017 13:43:15 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35214 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752250AbdHSRm5 (ORCPT ); Sat, 19 Aug 2017 13:42:57 -0400 Received: by mail-pf0-f194.google.com with SMTP id j68so3275775pfc.2; Sat, 19 Aug 2017 10:42:57 -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=Zya5gEY8kuyTcuuiQB+oGJWmBKgT4UA+f82A9U0L53w=; b=AXqbS8nWjQYUMK0mxlXyB+uqGk1c3DCPEA87D79+5iVvVCaIp1+lzRQnvd3cOr0DjZ X4Kd9Y4Mf8cNRv2sjj2+Jt6F7rHFbIuiWZuJJJ05T2tY1g3y97Q8N7N2dbQcSc1P7Lsv 8GGHLTGc5w6OCJFYrmT8LofvZ8maaByuEGb8kA5SnL4k/qd5Z+LW1ZLpto/s/TwbfNwk 4888KvvDm7AMqJH2tvPXkxbiZ/DxnqPnRwvGhp2dA+7UyO6XOlfRnain4IYxc+YGeyJC vDDO1ynixrz8EXseLPnW8keTUuDFqjU0n8HNcIHLffxI3IazWiWRKBNTIxOoVpLun/YU +xVQ== 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=Zya5gEY8kuyTcuuiQB+oGJWmBKgT4UA+f82A9U0L53w=; b=oH2z9jCvPlPtK2VfGLwc2MI7QQ9J180F5BWthi+Dm04u0IxpJFpO49zmxDB97nflCJ 4UojCzW4ieg6ll5VIXZGQlmpuGy85NhjskWAcQnVTbFLbvVKMFMKR/wagwCsDQMVF1iN VH+buZsbwyeKX0zFqFfQvWSB9iK9Pb0mr89vFDqXkPlz/IoljBGRRzp7EKDFbo+ziHeZ jxrUvIhw63CtXOLKXgOuo7n382RguWjQ8nOstsKY0NK5yCPfmFcEOC10BL3tIrfXBC4r hILMuZdXIiTFTFYNcoifudRPHMR+0l5VkG3+cBuGPBBUT0qjRBc6Qsm8Lkhf3hY040Uu qRBA== X-Gm-Message-State: AHYfb5hF+kckGAV5cdDNNqAYXgKKydn+LIiLfFMWrEThX4hZHsiQf6Oh WmkiCQZliQiwgrvq X-Received: by 10.84.231.131 with SMTP id g3mr13548777plk.283.1503164577055; Sat, 19 Aug 2017 10:42:57 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm11912456pfp.88.2017.08.19.10.42.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Aug 2017 10:42:56 -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 8/8] parisc: wax: constify parisc_device_id Date: Sat, 19 Aug 2017 23:12:26 +0530 Message-Id: <1503164546-31433-9-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/wax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parisc/wax.c b/drivers/parisc/wax.c index da9d5ad..e2d5238 100644 --- a/drivers/parisc/wax.c +++ b/drivers/parisc/wax.c @@ -125,7 +125,7 @@ static int __init wax_init_chip(struct parisc_device *dev) return ret; } -static struct parisc_device_id wax_tbl[] = { +static const struct parisc_device_id wax_tbl[] = { { HPHW_BA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x0008e }, { 0, } };