From patchwork Wed Aug 16 04:58:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9902977 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 D55A4603B5 for ; Wed, 16 Aug 2017 04:59:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA3A028965 for ; Wed, 16 Aug 2017 04:59:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE1D828968; Wed, 16 Aug 2017 04:59:48 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable 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 7FDF728966 for ; Wed, 16 Aug 2017 04:59:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751500AbdHPE6v (ORCPT ); Wed, 16 Aug 2017 00:58:51 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34901 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751224AbdHPE6u (ORCPT ); Wed, 16 Aug 2017 00:58:50 -0400 Received: by mail-pf0-f194.google.com with SMTP id j68so358052pfc.2; Tue, 15 Aug 2017 21:58:49 -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=/P31Bl6cEy6v3PmeZvHq0RfqvECNPGC6G0xrCbYnYAA=; b=k85YNiJ0UTHT/2cqsoA6KhR2/Gp6jrQZOmZ7YbD2POtB0KgOVxWwn8oZ60uhw+k9u6 yw1uF5Z9+2b3cc9HcYbBInmIXBrEXL7Qr59g67hOyWUVNnTS/7WiqQH/3YtevPug2/Ig WNa92XBFleFM9qyeYioEOeMOWIdZYUzT7KLBOuhR5g7N3MK9EfZFXcRUiMDseOz06In1 wV5oM2J84MvMuvxhHZtm2ckD3M37MbDlJ/3SIk++d0pYYGJseXrw5l8bBE3jhpC5naoV 9NpgNrlXIBfkXUHlG1XE6pBVoGwz7qJQQzS1NNJb9DK/3n/6jNwo8ICedIdCE0i4WYmF PwUw== 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=/P31Bl6cEy6v3PmeZvHq0RfqvECNPGC6G0xrCbYnYAA=; b=BMmJG1jZZ+6gk+fLyuGW3WPXUdYpfR7UEPvkQW4+5S0K0iisZnAzRZt3mGv+S9WeTA ERPk1ChQER/0b0v0x9Cc7gxHvWie7hioXws0adYVkRn1IMvad00xO7hJ718yF1PhSyd2 ijyG5pQONwXquiQ9FylnyapGQEH9sSjcLD69UR9HEqx6Y8YuKoZ1YNxivqioRoYgs6IC DarC/7g6pIBeTAnfxC1KSlRlL4ZOayndbx6YExmN/iDP4BoLz/1E/NtpW5ewNtKDVyy2 w20CSHCD6mOI3UkaRkUnxLzk2W95LfCqzzEMjj76KN8sgm8vnPqI1J0xX0kS6d7II4f4 YWTg== X-Gm-Message-State: AHYfb5iwKboqJrUqTLaVY0sngPH7dVZGuBq8LQ0+6UP6ovPfJDFhvWCw WcM1i8oJbGxlNA== X-Received: by 10.101.90.73 with SMTP id z9mr458805pgs.450.1502859529721; Tue, 15 Aug 2017 21:58:49 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id v78sm21454499pfd.121.2017.08.15.21.58.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Aug 2017 21:58:49 -0700 (PDT) From: Arvind Yadav To: fthain@telegraphics.com.au, schmitzmic@gmail.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH] scsi: ncr5380: constify pnp_device_id Date: Wed, 16 Aug 2017 10:28:40 +0530 Message-Id: <1125161eb43bc7ee7f748a040ab06b40cc1537dd.1502859040.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <60c34272432b3411cd5d55728c62481e133f32a6.1502859040.git.arvind.yadav.cs@gmail.com> References: <60c34272432b3411cd5d55728c62481e133f32a6.1502859040.git.arvind.yadav.cs@gmail.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP pnp_device_id are not supposed to change at runtime. All functions working with pnp_device_id provided by work with const pnp_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Acked-by: Finn Thain --- drivers/scsi/g_NCR5380.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/g_NCR5380.c b/drivers/scsi/g_NCR5380.c index c34fc91..1968d81 100644 --- a/drivers/scsi/g_NCR5380.c +++ b/drivers/scsi/g_NCR5380.c @@ -703,7 +703,7 @@ static struct isa_driver generic_NCR5380_isa_driver = { }; #ifdef CONFIG_PNP -static struct pnp_device_id generic_NCR5380_pnp_ids[] = { +static const struct pnp_device_id generic_NCR5380_pnp_ids[] = { { .id = "DTC436e", .driver_data = BOARD_DTC3181E }, { .id = "" } };