From patchwork Sun Aug 6 06:48:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9883521 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 1C8836031B for ; Sun, 6 Aug 2017 06:50:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D245285EF for ; Sun, 6 Aug 2017 06:50:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01E5E2864F; Sun, 6 Aug 2017 06:50:34 +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=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D30DE28668 for ; Sun, 6 Aug 2017 06:50:33 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 24259266D16; Sun, 6 Aug 2017 08:49:29 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2F96D266D16; Sun, 6 Aug 2017 08:49:27 +0200 (CEST) Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by alsa0.perex.cz (Postfix) with ESMTP id D940926684C for ; Sun, 6 Aug 2017 08:49:21 +0200 (CEST) Received: by mail-pf0-f195.google.com with SMTP id t86so5949177pfe.1 for ; Sat, 05 Aug 2017 23:49:20 -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=M7qBprcTyC0chZ6pxK6Ix22bj6j+liXWVOqERzJotss=; b=qwZYslWCWi6HxkCHBqPzKNqnsjtCnLsqDmc9BlOLykmUcaMrrqkXI8plUMWEF1Yspo 8LVmdsgo0u1s+4Un9ltnexalg07wNsc/fr60dW7DAOS8vZW2ncRiwBpazoL91wKFg2ie WZ2Truh8eX7SR6gmgjNqRhdz4KaMPl21stcrDEUKgAAwZRoWhOdlY7VAdt+NIwiKcHaJ Y/d/dizf+TvQfpV+suUoSwGQKknCU1GIV17PV/SOP7Akjd1TYQJc0XamJioTzan5ffaG STiEaffHSus0RuRz4cl6+8+RfzYMjnQvVvf3s+/cowaZK1DfSP63L2AcRMx/d9DX8JA1 ltQw== 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=M7qBprcTyC0chZ6pxK6Ix22bj6j+liXWVOqERzJotss=; b=QUQwqkzIVVKdXCUsve8ZoNqsKHRsJBnlgWXjUxlHn+vkgNE/i+BGpRn9p1YyHEcQiW D8PT6Ci96EkKOBGnzkCcSlZzXjuPjR0FyUp3/gfXTI5+H9EzHYggtz/UuWTtwE9SOOHJ 9Wfb3ridA8NMsY6iLpDtTqX9JLok429sxiHdO/1YHJYOaCtxIm/101ZlFww6//zU+2U5 XkpagiDEeW5tqVTo0nShWSUbenkAdwNvjQz3gYOJsjiZbXuVCZ0VMMiEBcPXVlt6LHHV 8n+uuHOfNWEWwM5KN2MBSArSICqKd2NVu2fK0deRRqeNne6rX/+Y9czNN46yxZxPm4rz ubqg== X-Gm-Message-State: AIVw111z0VYpGGwuclq2yDKGV3h0JAsnJmxxJJzA1xxySfv3E9iihW34 ar7gdndpge3Z6g== X-Received: by 10.84.132.76 with SMTP id 70mr9239860ple.7.1502002160024; Sat, 05 Aug 2017 23:49:20 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.81]) by smtp.gmail.com with ESMTPSA id r8sm10508524pfl.34.2017.08.05.23.49.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 05 Aug 2017 23:49:19 -0700 (PDT) From: Arvind Yadav To: perex@perex.cz, tiwai@suse.com, zonque@gmail.com, clemens@ladisch.de Date: Sun, 6 Aug 2017 12:18:55 +0530 Message-Id: <1502002139-10787-4-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502002139-10787-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502002139-10787-1-git-send-email-arvind.yadav.cs@gmail.com> Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 3/7] ALSA: snd-usb-caiaq: constify usb_device_id. X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.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 --- sound/usb/caiaq/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/usb/caiaq/device.c b/sound/usb/caiaq/device.c index b871ba4..0fb6b1b7 100644 --- a/sound/usb/caiaq/device.c +++ b/sound/usb/caiaq/device.c @@ -81,7 +81,7 @@ enum { DEPTH_32 = 3 }; -static struct usb_device_id snd_usb_id_table[] = { +static const struct usb_device_id snd_usb_id_table[] = { { .match_flags = USB_DEVICE_ID_MATCH_DEVICE, .idVendor = USB_VID_NATIVEINSTRUMENTS,