From patchwork Wed Aug 9 16:25:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9890981 X-Patchwork-Delegate: kvalo@adurom.com 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 0918A60384 for ; Wed, 9 Aug 2017 16:25:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC0A528A85 for ; Wed, 9 Aug 2017 16:25:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E0F6228A9A; Wed, 9 Aug 2017 16:25:28 +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 AB77A28A85 for ; Wed, 9 Aug 2017 16:25:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753959AbdHIQZO (ORCPT ); Wed, 9 Aug 2017 12:25:14 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38409 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752889AbdHIQZM (ORCPT ); Wed, 9 Aug 2017 12:25:12 -0400 Received: by mail-pg0-f66.google.com with SMTP id 123so6261957pga.5; Wed, 09 Aug 2017 09:25:11 -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=IxA2QFTIqAi4xsVYycYbvtZa9P/nB6lNAl3pBH4kXzo=; b=dh3LaOiTdC9dGv9RKF0t6bQZl2qdL4UIGypESFmRKdxy1qHJX67HI5PEcdoxX4vmMk Yv/hD72qpntDuxcOXcF311k9NMzRVb6JIYT2aeXaI4a1iK8ASFAhsVhRQOPjQODvYykV 7E5ySoNJmlyk5Uc9WdEqegD8CIy+h0HAj4H8wPVSdOXs7Mzb2gQqjntwmQscXdKb+cuN o3Z62ftUmZ4Nu3jAn2dz5YdFlULp8jvCVnkbuPeSgF5hTtoYKZ2fp8mOxxylcI63RL57 k7wR5nwEVFVU7vF3YqN6FHNltmicNdabays+bsF/9vkWdsi9aMKvqfxMwIZCz1LlHxib WLHQ== 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=IxA2QFTIqAi4xsVYycYbvtZa9P/nB6lNAl3pBH4kXzo=; b=acstv+0JrJLZY+iw2aXjAF5OVnvlzuLpG/jnBWyQN2XQoPUbLyTm6Jhb9VJL42yJy0 UA7JhbqunqZv6zZzNWnf8fz3WN6gk/i1RooV+UrgMEDE3dPFcSTi1L8XFk6+8qumztoj BoS0h5PETUQH7GNEvLM5MtNOPhxuduwuzsXk0hnLnJ8D8kHTXjOfGqhRzRz905b14gvL L7otnbZxhG6CCXb384iB1PjdvF0hSVKcFwrC3mHOHXgNGfGTki5BaisP/ed6NA+4fjdt v+LVzYlJrGbnwzTUP3cIoQKQMYnHdGg0n1xgIP0ZFTdye6UAOayqWnIPZ+Vrg1Nk5Rgl ipsQ== X-Gm-Message-State: AHYfb5hDsonCLUyEeqxdsbzGT+rFvCcmMUN8SiPyQyTsPDAu70SQJvii VWvc6OO8yCjdtQ== X-Received: by 10.99.125.68 with SMTP id m4mr8173237pgn.259.1502295911526; Wed, 09 Aug 2017 09:25:11 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id n11sm10365436pfg.15.2017.08.09.09.25.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:25:11 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, petkan@nucleusys.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH v2 05/20] at76c50x: constify usb_device_id Date: Wed, 9 Aug 2017 21:55:03 +0530 Message-Id: <1502295903-20986-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- changes in v2: Re-submitting wireless separately. drivers/net/wireless/atmel/at76c50x-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/atmel/at76c50x-usb.c b/drivers/net/wireless/atmel/at76c50x-usb.c index 09defbc..94bf01f 100644 --- a/drivers/net/wireless/atmel/at76c50x-usb.c +++ b/drivers/net/wireless/atmel/at76c50x-usb.c @@ -130,7 +130,7 @@ MODULE_FIRMWARE("atmel_at76c505amx-rfmd.bin"); #define USB_DEVICE_DATA(__ops) .driver_info = (kernel_ulong_t)(__ops) -static struct usb_device_id dev_table[] = { +static const struct usb_device_id dev_table[] = { /* * at76c503-i3861 */