From patchwork Tue Aug 8 16:06:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888691 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 67F1A601EB for ; Tue, 8 Aug 2017 16:07:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B2C7287D2 for ; Tue, 8 Aug 2017 16:07:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5043F288AA; Tue, 8 Aug 2017 16:07:36 +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 1B4D5287D2 for ; Tue, 8 Aug 2017 16:07:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752951AbdHHQHR (ORCPT ); Tue, 8 Aug 2017 12:07:17 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34711 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752156AbdHHQHP (ORCPT ); Tue, 8 Aug 2017 12:07:15 -0400 Received: by mail-pg0-f65.google.com with SMTP id y192so3414837pgd.1; Tue, 08 Aug 2017 09:07:14 -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=oRYbdz4DX+5BsnIO0Xn7yKvU0vgSM9ephadLpK1hEXU=; b=gzTZ5wJGy/4YkOVEdYNdW5GkUmf+UAtl/q32+YxS02u1mR3841uEF8/AJBWBLC5jdh SH7g8kKk196NRvFB7oDQwrgMmJTxa4ocEmIaVHjoIXS/vrzbMt1uc0w9aiYzT0iYkXkv 3UZIIOkZ6F1sxpJMaE156xgM0QRrq+sCmKIfs/A1O+mzcG3OQ9sP/GAwjJ/VDviw7nwr MxtMEn2yDu3xI0+ykYlMqGMT7CLfQV/rb9/ObWb3xxhnyMMgAaau10PCbMIsSJ8Fc0Xy tR0aiyBl2ujrKEt9QheepcCZF/Fk4wh2GwBJ9aTpKh8fq141q9Us8sI2b+GuWGOIbQdI VxGg== 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=oRYbdz4DX+5BsnIO0Xn7yKvU0vgSM9ephadLpK1hEXU=; b=NhGG8K8UfMz/IcFgMcjP6IPjT06rJo5VI3Gr+7vhRmuOJq7FuHmwb5nTtwuWYIoxAI 0YEQMcPDscIGgDGmlh9Jvk8xtEfBvPgbQbSe91lRprEaL8wOh89V2cVuaFG8PYETj1EA hgKnXX7OTS5Tr5Sl/n0QZIoc6zERcAmBrWWjBE1IQtICXqJuS2r7KjwiGhg0IRhKlTpi HJFfZJA6+8tDxLEMmOoo03lju0YMjpRvW2hXxOFhCKNcptC+o2xOgd/GNPhE2lXA6kGA DNcLgODxIfmjky8sYfNBgMrS8us/fb1GzfDxxVErDiUiXdlBfyg0D+ww6XLCydMegsuv /9Fw== X-Gm-Message-State: AHYfb5iphJbj9Z3Iv+Rl5A3PGkcPnnjsHi0t/0QNQSxgy+RBahD17bYE G0NSTbIR5rKWQ1VDzK8= X-Received: by 10.99.53.76 with SMTP id c73mr4494991pga.398.1502208434375; Tue, 08 Aug 2017 09:07:14 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id z9sm4945910pfj.126.2017.08.08.09.07.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:07:13 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, dsd@gentoo.org, kune@deine-taler.de Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH 35/35] wireless: zydas: zd1211rw: constify usb_device_id Date: Tue, 8 Aug 2017 21:36:46 +0530 Message-Id: <1502208406-12549-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 --- drivers/net/wireless/zydas/zd1211rw/zd_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/zydas/zd1211rw/zd_usb.c b/drivers/net/wireless/zydas/zd1211rw/zd_usb.c index 01ca1d5..c30bf11 100644 --- a/drivers/net/wireless/zydas/zd1211rw/zd_usb.c +++ b/drivers/net/wireless/zydas/zd1211rw/zd_usb.c @@ -35,7 +35,7 @@ #include "zd_mac.h" #include "zd_usb.h" -static struct usb_device_id usb_ids[] = { +static const struct usb_device_id usb_ids[] = { /* ZD1211 */ { USB_DEVICE(0x0105, 0x145f), .driver_info = DEVICE_ZD1211 }, { USB_DEVICE(0x0586, 0x3401), .driver_info = DEVICE_ZD1211 },