From patchwork Sat Aug 19 06:52:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910161 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 BA17F60386 for ; Sat, 19 Aug 2017 06:52:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB9BF28DA9 for ; Sat, 19 Aug 2017 06:52:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FE6E28DAB; Sat, 19 Aug 2017 06:52:55 +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 42C6928DA9 for ; Sat, 19 Aug 2017 06:52:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751752AbdHSGwy (ORCPT ); Sat, 19 Aug 2017 02:52:54 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:38653 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751745AbdHSGwx (ORCPT ); Sat, 19 Aug 2017 02:52:53 -0400 Received: by mail-pg0-f68.google.com with SMTP id 123so17765021pga.5; Fri, 18 Aug 2017 23:52:53 -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=OjRz4d6NM4yd78b+6QkaXAXWdjuEAyJ43gkDweUaTV0=; b=qQm3ioY9PSRphh3W/7Z0wSCeZaENI6qgO/KWUMbdkn48O/hzE+dOpvr8nqHXBwrsmi DJcVVHfvddWw+Bz6F0vocHtoZV+Mwxy1Dvy3DJQnWcARFWgtnhBecT0XdYLd/5hrrv4U VJobwtstn8iN3/9l7XCiZ+KWTeOvmhHEWYEyMzpIf8UWqY1juOmBDXEmmRNyrmgPHd3/ KG4XvL/Yj47Tys/aQ1e3ALWMx43+AaTI4ad/7E2tv2DLhWL5QzNtqeFouCP75jdAjdAr S1qwhE6P10MAbDzYNebDJcEKGsjxb9nzJgMHQTfuUfYAzVO9NQDDZ7gfic4OflY+qLtL c6hw== 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=OjRz4d6NM4yd78b+6QkaXAXWdjuEAyJ43gkDweUaTV0=; b=F7VVsBEQzpK8w/COYrBNKjVJFAPk2v7OJ+0vLlUTzrnQPpAiKaEBcwZGrtyKSKwrnx lbuZvp9UGAgp+O3C9UPs/c5j856AFefKC9jnKPghNy5L4Zo28rNsh2Yx0IRKeeUMNT5w /dWhGKqXaST3zxk1dBiqm5QtumBsiH8x+wBvO1kaK9uD/q8cJF48wwgsfsTrE0bf5u06 WxJkCWjZIbQellUct7LAHZHTwEG9yufnj16/t6wI+33LRIGkm1uSjPa+i9xadMuBXrwj GsKTlYmA2DZGS01+iECn+/TtICE+XtMo+RTjZbWe9LxeZvAFjHXHc7mGDzuPkBaXldIi oVpA== X-Gm-Message-State: AHYfb5j3RcEUtPqDJKXjk81W8fWa2TgfWBjlkvV6W4oFZSUGpUFYSc18 tatKgOup4TKXqw== X-Received: by 10.99.174.10 with SMTP id q10mr9902728pgf.234.1503125573342; Fri, 18 Aug 2017 23:52:53 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id s83sm5519041pfs.98.2017.08.18.23.52.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Aug 2017 23:52:52 -0700 (PDT) From: Arvind Yadav To: davem@davemloft.net, johannes.berg@intel.com, jarod@redhat.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-parisc@vger.kernel.org Subject: [PATCH 3/5] net: de4x5: constify eisa_device_id Date: Sat, 19 Aug 2017 12:22:44 +0530 Message-Id: <1503125564-15193-1-git-send-email-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 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/dec/tulip/de4x5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/dec/tulip/de4x5.c b/drivers/net/ethernet/dec/tulip/de4x5.c index 47be501..0affee9 100644 --- a/drivers/net/ethernet/dec/tulip/de4x5.c +++ b/drivers/net/ethernet/dec/tulip/de4x5.c @@ -2094,7 +2094,7 @@ static int de4x5_eisa_remove(struct device *device) return 0; } -static struct eisa_device_id de4x5_eisa_ids[] = { +static const struct eisa_device_id de4x5_eisa_ids[] = { { "DEC4250", 0 }, /* 0 is the board name index... */ { "" } };