From patchwork Tue Aug 8 16:04:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888667 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 60C16601EB for ; Tue, 8 Aug 2017 16:04:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4DC8328826 for ; Tue, 8 Aug 2017 16:04:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 427A428903; Tue, 8 Aug 2017 16:04:45 +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=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 F36FE28826 for ; Tue, 8 Aug 2017 16:04:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752651AbdHHQEo (ORCPT ); Tue, 8 Aug 2017 12:04:44 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36868 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752873AbdHHQEd (ORCPT ); Tue, 8 Aug 2017 12:04:33 -0400 Received: by mail-pf0-f193.google.com with SMTP id p13so3462611pfd.4; Tue, 08 Aug 2017 09:04:33 -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:in-reply-to:references; bh=DN7v57zDggHgLdxd+ppQZB/Tqn05/Ts4yq7EvM0k2gg=; b=L4PaOnBS2Ugk/rLDZC84+Fy4GFin0CcV+dNRG9jeSWZExwGhowZNw+ctXhfqv4s9HT ES85tT15QJ6EYJdlZ6daJAiGw36VffTVQA/0OMUrUBaYN2EROCYrRgWOGXOXNoJyvxOW C0Z+5Ezq4Ek+F3d1Wk0e4UKfoy72bc7M/e4UMIUfz6vtxhKQK9LjCAbv8HgFppuhkJnX 4zcsgszYwPEitSUVjxsrOmb+9rph4JfACX+hiVzhr0DdahXytW/WGO/RAfn5Y43DetCl OXeQNnAIPxq9pd2qWuWk1S2Wy8SUuRMlRGP3GOIQLyWPbAJjxh8NQXHrD0UV1xcPY0GV mGSw== 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:in-reply-to :references; bh=DN7v57zDggHgLdxd+ppQZB/Tqn05/Ts4yq7EvM0k2gg=; b=nLPlka1lUtu7Fy+zrip7MAaMSZxQ2De8ALKPAlhzsZTmPT51wD3ndLnC5QMzB0cn3J /OQZ609+Jc2rjvFIDrvfChAJDKqN65L91Qpezm/M8OYiG/E36+fhWxCAOkYn8Lt0mH0s abhILNJtCoIbNXX4e4RHQWSF2aYCmml4uEnVRd/aVxM01cXfD3oqc6tm0zNSFuC7ojlX EXWS3R1pWvy4QO5xCpuNMFFKZZ3TruS3ut6q9oebUwK9B3XbVI6PYQFhs+waxNlL5mB6 Cv7vXYISOmfwoS0e5wlyHtnzc4D2CcDDxqmV6fOuWyMeKZi+hCP2E5C8UGAmaVT0Oxf8 8B+g== X-Gm-Message-State: AHYfb5hYcNZFlSrTxJ+dWa0DEwKW2vv8OJ5jCJTv+IBN1qC2If7TAtVf 23liqqp/a/DHDqaTWZ4= X-Received: by 10.84.132.111 with SMTP id 102mr5465750ple.154.1502208273110; Tue, 08 Aug 2017 09:04:33 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id z9sm4937024pfj.126.2017.08.08.09.04.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:04:32 -0700 (PDT) From: Arvind Yadav To: kvalo@codeaurora.org, sgruszka@redhat.com, helmut.schaa@googlemail.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH 30/35] wireless: ralink: rt73usb: constify usb_device_id Date: Tue, 8 Aug 2017 21:34:19 +0530 Message-Id: <1502208259-12287-3-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502208259-12287-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502208259-12287-1-git-send-email-arvind.yadav.cs@gmail.com> 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/ralink/rt2x00/rt73usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ralink/rt2x00/rt73usb.c b/drivers/net/wireless/ralink/rt2x00/rt73usb.c index fd91322..9a21282 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt73usb.c +++ b/drivers/net/wireless/ralink/rt2x00/rt73usb.c @@ -2408,7 +2408,7 @@ static const struct rt2x00_ops rt73usb_ops = { /* * rt73usb module information. */ -static struct usb_device_id rt73usb_device_table[] = { +static const struct usb_device_id rt73usb_device_table[] = { /* AboCom */ { USB_DEVICE(0x07b8, 0xb21b) }, { USB_DEVICE(0x07b8, 0xb21c) },