From patchwork Sat Aug 19 06:53:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 803494 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="NR0vdFDp"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xZ9ds10XHz9s5L for ; Sat, 19 Aug 2017 16:53:37 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751843AbdHSGxY (ORCPT ); Sat, 19 Aug 2017 02:53:24 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36400 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751018AbdHSGxX (ORCPT ); Sat, 19 Aug 2017 02:53:23 -0400 Received: by mail-pf0-f193.google.com with SMTP id t83so2472454pfj.3; Fri, 18 Aug 2017 23:53:23 -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=tIA7Sla27vSWYZk2piFrAJjVEm901RRe9vQ+23nYG1M=; b=NR0vdFDpABl0CH9ZEqgsLXk88wxBA1NSjN5LS+gx5FkLC06/esjVfbU9p24h2Shyk/ Dyg/7y8b74vePki+PafgtYvSUbN7CZBjNZx0UptJCi1NnYPpy6e+SjxwMN/sKC1CFE/H puHlrerRhH209OyR+ctGGjnAzEqaYoFLcnsN/sHjYJPUjjXstog4tF3gpAvXU3q3fDgV neg1vywsgQACN8uzm1SG0jzULxzkLTOPX9nxDnvehYsZ/RUUIeONkeMIME9tLOu9kg4I uTAhh8WopQ8/Igj3K64GO3K38sjNLBDyEdaUcj8MQV7dHhk4OWUlJMnCB6vKeH0FaQM4 XUMw== 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=tIA7Sla27vSWYZk2piFrAJjVEm901RRe9vQ+23nYG1M=; b=cxDPLgizZVDg0gff8bRsQZCl1tOooZ3sSHvwAM5PggNE4Kmi7z7qepWIm55LhAzzbI DCskAkByTPXBZdqFKmRCW00RU5ARB2k6cEGA2nlf4DeT0cz9BCY2AuZjxoD3yyqrQUKu iu3thzeNwp8q+PS1KGpIldnuhbPv0wHxjDsnNllrcVnw3XQs1hFa2wpM9m+gyfrzh8HX muI6a+U6SByBD6ubMWLqHHmMmjp9HcvIRATAtvTJY1LDFlCySvJBK86vWwZYUzOtuWtJ DVKFeUiLC6S7scE+hk86PS9x9Xm9X9aSg+KHGeuJS6TMss8n68fxjevvkkL2eQaMipix IwxQ== X-Gm-Message-State: AHYfb5j0yy5qMyDkF7VLb/Hl1i49GAcD6qQSqf/0Z4Ix2xYC77XeMVOC R5/akP6Mm2Ew2Q== X-Received: by 10.99.2.203 with SMTP id 194mr10547731pgc.22.1503125603106; Fri, 18 Aug 2017 23:53:23 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id a22sm11280801pfj.94.2017.08.18.23.53.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Aug 2017 23:53:22 -0700 (PDT) From: Arvind Yadav To: davem@davemloft.net, perex@perex.cz Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 4/5] net: hp100: constify eisa_device_id Date: Sat, 19 Aug 2017 12:23:14 +0530 Message-Id: <1503125594-15246-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org eisa_device_id are not supposed to change at runtime. All functions working with eisa_device_id provided by work with const eisa_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/hp/hp100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hp/hp100.c b/drivers/net/ethernet/hp/hp100.c index c6164a9..c8c7ad2 100644 --- a/drivers/net/ethernet/hp/hp100.c +++ b/drivers/net/ethernet/hp/hp100.c @@ -194,7 +194,7 @@ static const char *hp100_isa_tbl[] = { }; #endif -static struct eisa_device_id hp100_eisa_tbl[] = { +static const struct eisa_device_id hp100_eisa_tbl[] = { { "HWPF180" }, /* HP J2577 rev A */ { "HWP1920" }, /* HP 27248B */ { "HWP1940" }, /* HP J2577 */