From patchwork Wed Aug 9 16:29:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9891051 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 8482C60384 for ; Wed, 9 Aug 2017 16:32:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74D1628782 for ; Wed, 9 Aug 2017 16:32:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A0C128A98; Wed, 9 Aug 2017 16:32:37 +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 271DA28A85 for ; Wed, 9 Aug 2017 16:32:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754094AbdHIQaP (ORCPT ); Wed, 9 Aug 2017 12:30:15 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:37631 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752684AbdHIQ37 (ORCPT ); Wed, 9 Aug 2017 12:29:59 -0400 Received: by mail-pg0-f68.google.com with SMTP id 83so6267549pgb.4; Wed, 09 Aug 2017 09:29:59 -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=75lGgzqUyDLSDVU2dqLKrnwRqFdw88SoFwIP9YMWL+I=; b=lF4xNQFRtgyLsPmtcjiNmskiRSAkhJsNngaAzkmtIARh8bENoropi388qWGgSysaNx 8JVGpRUUEtcBmBPBWtTB0Z+F6Rz7vR8qngRIrzEKw34Ml5kcZLMWiMARUxmNGId7DmSt eiBYUBSXdSh7L6AchKQvpIlzZeFU2iOJAXgz8IFGzq7vW0+3ZrjFvtsvBPhkdSu1Lo4d Uv33Kdnk6z24/BVLKF+OQY8qFx3liLMYdLJMtRaAjUisSlprgxXSHYoZnToFyqUkvUYF isg/wbo7UPbchSASPS98OiZofbAWC8czM/3LCxVJL2bfSZ7GOqDDJd8einCraDsi9tQi 4q/g== 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=75lGgzqUyDLSDVU2dqLKrnwRqFdw88SoFwIP9YMWL+I=; b=gdTIfRWmR4lNNZQzAcTdB4EPRPg5qP79SqX76qmbM4qTM5QQiVGsoIpln/X0MfV3vY PMjBOtdlZXwOhju7dYu8Xb100ZarIsIgODjOTg1mYY9/7Vs/B0aEV2dPIdeR7lphwr7Y oh/0lTMdXAeGbAGiuMWhP6LaQKYXliGCmS7LCYvyERyBoGiYcwwu/dxJ0iUr56+4t8GF V/PHCGF+VnisIJth7j7nLbm0X9Jom0uVWmvMukeW+IW4hqbj+KBU6l/R3jpDwr6IcT3x blUSCkz7r89mR1UthZFMEra+L2yz2JFgz24ESSETOqGN2p5LuP+YramPA+1jI1ynHXi6 Yy5Q== X-Gm-Message-State: AHYfb5h96pxL9xln7sUZlGkhB0nPEQ7SfTOuZVWSSWtRF9k3nM43EuOH DJCtWgugfhPRjSIFZZU= X-Received: by 10.99.129.195 with SMTP id t186mr8292045pgd.287.1502296199076; Wed, 09 Aug 2017 09:29:59 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id s11sm6957925pgr.53.2017.08.09.09.29.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 09:29:58 -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 v2 15/20] rt73usb: constify usb_device_id Date: Wed, 9 Aug 2017 21:59:48 +0530 Message-Id: <1502296188-21563-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/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) },