From patchwork Wed Aug 16 04:59:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9902981 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 31A3660231 for ; Wed, 16 Aug 2017 04:59:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26B0428862 for ; Wed, 16 Aug 2017 04:59:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15EE728969; Wed, 16 Aug 2017 04:59:49 +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 D3B5A28979 for ; Wed, 16 Aug 2017 04:59:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751635AbdHPE7f (ORCPT ); Wed, 16 Aug 2017 00:59:35 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36759 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750902AbdHPE7e (ORCPT ); Wed, 16 Aug 2017 00:59:34 -0400 Received: by mail-pf0-f194.google.com with SMTP id t83so358080pfj.3; Tue, 15 Aug 2017 21:59:34 -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=vER7OBDhH4fWF7P3p7tcJS7LFdPJj9QepuG8NYvfv98=; b=ck63TRo9ZS/ugq9pKH4XjEpKoMzDyoC65qJkncdoxi8fNWZ62lGvGoGaGf9Iu0GB/A B3JSr2ntsig7QKsG3GIvzrziB8bgxel40KyxIqLu0LBFaU8vo7xxvPSyUIxnTujrCnOc qxutwB90PCeP22vdyHoZNoa9+qvYOSy6YXVj8rAqe2Mi6n8l5Qnzt/k1V9WiNbNeaPx7 hMoSNjP5+qwpfPa7iafXqQ5ZCbqXGqPSJrvOQs/eembV64KJzMS1bMFDd1TD5WHrj3VB L68ZLH1s3LTH/rpApoZRWZeNXcBDeIImw5KZFSjZv1RUdZAZOTtzFkjACrw4XcBU7PqK lhsQ== 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=vER7OBDhH4fWF7P3p7tcJS7LFdPJj9QepuG8NYvfv98=; b=oKXqZz3EG7DBEf3229py9kXgc11+Ldto8S6xVvKp8GGuAKWAqeJLECR++N2l5yc2zj qMzv8r5MoRJbgSNeUVd6uRl/u//F80IZDnC+VCWpF+CeNZh1pQ3O4KXJVXHggwH27stb bWWOPPjKtUzSg0RHyXV9kdwutkpqdpAoSmdVxHlLFtUBUIcZAoDjj3/DdCKbqINGjSAP B1eZUT6ABGA0eHdTsiI/1bZcMmyaDYtNephUxmxhjs6Eiv9PExWBpnaEGDJiU+b2JPYR tuGmR/zsVHSCqBuqIOOcBp7srbishENCu8zuh6CDjT/yQAJFB44Czau0yg768giWOQDH sIFQ== X-Gm-Message-State: AHYfb5g0jGAaUceMmWxqbT4erJrNEbbzZpqKWTL6RLzkNLs7SGvTI7s8 U2aI0Ya7EiFxjw== X-Received: by 10.84.209.171 with SMTP id y40mr576086plh.118.1502859574169; Tue, 15 Aug 2017 21:59:34 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id b76sm41203pfk.21.2017.08.15.21.59.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Aug 2017 21:59:33 -0700 (PDT) From: Arvind Yadav To: jejb@linux.vnet.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH] scsi: aha1542: constify pnp_device_id Date: Wed, 16 Aug 2017 10:29:24 +0530 Message-Id: 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 --- drivers/scsi/aha1542.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index a23cc9a..1242179 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi/aha1542.c @@ -986,7 +986,7 @@ static struct isa_driver aha1542_isa_driver = { static int isa_registered; #ifdef CONFIG_PNP -static struct pnp_device_id aha1542_pnp_ids[] = { +static const struct pnp_device_id aha1542_pnp_ids[] = { { .id = "ADP1542" }, { .id = "" } };