From patchwork Wed Aug 9 18:03:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9891433 X-Patchwork-Delegate: sameo@linux.intel.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 331B060363 for ; Wed, 9 Aug 2017 18:03:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 232B7285C4 for ; Wed, 9 Aug 2017 18:03:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17D8F2874A; Wed, 9 Aug 2017 18:03:33 +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 D7820285C4 for ; Wed, 9 Aug 2017 18:03:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752689AbdHISDV (ORCPT ); Wed, 9 Aug 2017 14:03:21 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:38216 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751944AbdHISDU (ORCPT ); Wed, 9 Aug 2017 14:03:20 -0400 Received: by mail-pg0-f65.google.com with SMTP id 123so6446944pga.5; Wed, 09 Aug 2017 11:03:19 -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=Qe9MG5WjwrYrsVuxnRmR9+dX8N2kEGLOKGxNIQfH8Ug=; b=ijopAPKOw/30DgyC+F+vlR1w8x07Wh+KQj997RN5sSvtx5kUvIXeFGmaSYTVL2MqoM WMKJedrSKs3f2+Qp916MUA/JOVkROWUoxvaBP8Fb51DM5U5BMu26Zyk9/0c07qJSmLZH 76rqy0sOnUjsX/eQlJm8oX5xyfUQQOvSaOdzauOClFvmpyue/1vwZNGWHEzkdeOvZzXF 9sl9APGg6WqOWDGCjmbs9IG7y56h/4+Q+0zxQmv6J/3OPmD+34xFns7BTesFWPPHW9Zk j72n9uCQerSwPhwvafGrt5jPExO7UGYmdG+DizcPyrHa2g8lbrip3/oRzim9EBw4Sa8F BboQ== 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=Qe9MG5WjwrYrsVuxnRmR9+dX8N2kEGLOKGxNIQfH8Ug=; b=uKZwRv+k5j123nmGHWTc/r2VFheLSyOphXrmYnQBCSl+roOMe+/M79IZWtdrn632x3 zUgl+iqMpuFNA9Wymo2bqICY4NHesOo7EtP41yrovROtdSkO+IslrnVFY9hkPreSSiXt OU5xLj+MyDaOZgRTUopNYUgy/XMeUulJI87wWcBkk3wFRIKvBjKZLi8i1ms7NR1pLcxF dB+6GEGJBQG6LEI2ypSfZA/UUJ/tBl5ome9+mDucw5//JjWEEoWgwG3Ygg2nqPIUiib2 VQs1z6xvDfHwx2NiahTaX3Gmjqnw3EO9H/wy2mStCXUreb+nXucOTNGmpE+9gQhpumAO AH4w== X-Gm-Message-State: AHYfb5g7xR5Keq+PgoPxwXbCDrv9XfkDmj2KvCf5+0OKi6MZFdUsGLJX cBvXYNLjF7Xv8GDD0H4= X-Received: by 10.98.194.88 with SMTP id l85mr9203261pfg.252.1502301799490; Wed, 09 Aug 2017 11:03:19 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.92]) by smtp.gmail.com with ESMTPSA id d86sm8459355pfk.43.2017.08.09.11.03.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 11:03:18 -0700 (PDT) From: Arvind Yadav To: sameo@linux.intel.com, stephen@networkplumber.org Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] NFC: nfcmrvl: constify usb_device_id Date: Wed, 9 Aug 2017 23:33:11 +0530 Message-Id: <339b58be7bd3cd1b3ca3310e4a8500d6c8bc1fdf.1502301580.git.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/nfc/nfcmrvl/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/nfcmrvl/usb.c b/drivers/nfc/nfcmrvl/usb.c index bd35eab..46e11fc 100644 --- a/drivers/nfc/nfcmrvl/usb.c +++ b/drivers/nfc/nfcmrvl/usb.c @@ -23,7 +23,7 @@ #include #include "nfcmrvl.h" -static struct usb_device_id nfcmrvl_table[] = { +static const struct usb_device_id nfcmrvl_table[] = { { USB_DEVICE_AND_INTERFACE_INFO(0x1286, 0x2046, USB_CLASS_VENDOR_SPEC, 4, 1) }, { } /* Terminating entry */