From patchwork Sat Aug 19 17:08:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910545 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 4DE53602C8 for ; Sat, 19 Aug 2017 17:09:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35EB4286D3 for ; Sat, 19 Aug 2017 17:09:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27637286F8; Sat, 19 Aug 2017 17:09:16 +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 BFA88286D3 for ; Sat, 19 Aug 2017 17:09:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751816AbdHSRJP (ORCPT ); Sat, 19 Aug 2017 13:09:15 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36156 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751659AbdHSRJO (ORCPT ); Sat, 19 Aug 2017 13:09:14 -0400 Received: by mail-pf0-f196.google.com with SMTP id t83so3237252pfj.3; Sat, 19 Aug 2017 10:09:14 -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; bh=OTC3ksI9iO0GC/89OpsoXfttGVeL4thyIf9ai4Jv+YU=; b=DwVvLOmcn4LDknyOx0A4JI0EDSLbf2YxBSQb6V87uXUQzQLJPnZ7OuuKizU+SbnR1W gLRusHszzHLHE8sdD0avA0xFnYhhp3W7auI7rYgvdMxnOZDJW5IjMesI4g+jzaJ3cyPO 4d4eoBig2Z5J6niy9e42Qes1BOABSYvhNyIVvvO//sqwm6zfd6Z0bcJWj6vneuhCQO56 X7VVR9xolF4KHKN6WE8nQWajygF6JUTpR0AN8VO9CAojlCT7/aLNxITN88xbSy4/EInF omWPe6xUopGkIRk3FaeyiAQ/eIp+GaxIqA0tM7OA4xKxb1LnmgQNMos83rVCepeKjP6i KkOw== 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; bh=OTC3ksI9iO0GC/89OpsoXfttGVeL4thyIf9ai4Jv+YU=; b=jrlOkNHjpP5m3r/Ab2JAKc2L2ugOIlrrTaIUpVCDsfqxswq312njwuSYQJDY04ta/f OnpAjPWd8qiX3zILON5RyW30zmh3cHM8+bw6F5+85sF7FLCFxdGqGrx4wesUVBor61TF n/Bm5GZFMz9DAkMCaGPUsCV6YzEXWdFagLksJNiIGqDzqZtRv78HrcMROhTEaO2p9pfv gdn6SP71BmMCALzLAZCNAOd3qzYmU0T7mSMRTgDQiOD5R6eKDCUiH6lNBCma4F/7vObl 76eTPLC6JtcMM7jhcw/B8hyqJjVSD5tLJCc5fYhzWy6fC8GD1QhtE3aNRrtm7E3snZ4B LNrA== X-Gm-Message-State: AHYfb5iPaMdbco8Dwu9htwqNnQECmGrAORtF2aZZW/7zzYinVbZgCUVs FgeHmZLYqLQM3w== X-Received: by 10.99.120.203 with SMTP id t194mr5666705pgc.352.1503162554260; Sat, 19 Aug 2017 10:09:14 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id v126sm15227967pfv.144.2017.08.19.10.09.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Aug 2017 10:09:13 -0700 (PDT) From: Arvind Yadav To: jejb@parisc-linux.org, deller@gmx.de, sudipm.mukherjee@gmail.com Cc: linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org Subject: [PATCH] parisc: parport_gsc: constify parisc_device_id Date: Sat, 19 Aug 2017 22:38:41 +0530 Message-Id: <208280b55a359db78eecee720799955f2043fb49.1503162439.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 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/parport/parport_gsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c index 3858b87..8be1a0c 100644 --- a/drivers/parport/parport_gsc.c +++ b/drivers/parport/parport_gsc.c @@ -403,7 +403,7 @@ static int parport_remove_chip(struct parisc_device *dev) return 0; } -static struct parisc_device_id parport_tbl[] = { +static const struct parisc_device_id parport_tbl[] = { { HPHW_FIO, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x74 }, { 0, } };