From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751812AbdHSGwz (ORCPT ); Sat, 19 Aug 2017 02:52:55 -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 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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/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... */ { "" } }; -- 2.7.4