From patchwork Sat Aug 26 08:35:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9923289 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 E3F8B6022E for ; Sat, 26 Aug 2017 08:37:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFEBD285B6 for ; Sat, 26 Aug 2017 08:37:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C49F6285C5; Sat, 26 Aug 2017 08:37:23 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 79321285B6 for ; Sat, 26 Aug 2017 08:37:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754898AbdHZIhI (ORCPT ); Sat, 26 Aug 2017 04:37:08 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34172 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751302AbdHZIhG (ORCPT ); Sat, 26 Aug 2017 04:37:06 -0400 Received: by mail-pf0-f193.google.com with SMTP id p69so612337pfk.1; Sat, 26 Aug 2017 01:37:06 -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=lZqOsSKIhIQVDM2D7Ibgydow1jnLlSnQq4m99lmNnXc=; b=ZAWSaVRnu09v0NW371yt5JGei9gLDyZreArscFCuL7uvfSCymXuM0WnJCAK3E5XMt+ 3ZXuf+suHu0mQuhM1igR8n1vg0nWFC+LuEdbACWza7Ov3Q4Vc4S9dx3pFqJVZDL7o+eY p0lrFkPy93Atj9Veodak8z/uOtT0uh0pIZ/OOyfybEZSGv/xs0+0/HZx9mp0kHd6j82y 9bVAOOXwxGdG5FNmEDZggh5mxf8GCyu22XSpbX826VpdaIeo3DbkPyv2/5W5Qs7b1MZn jW05gXtBHtDKkfSmsrIoylUJocrh7lbdzZFQVUlI+xcud8EjxIZbzm/Xp6qKkAPrBcLN mk4Q== 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=lZqOsSKIhIQVDM2D7Ibgydow1jnLlSnQq4m99lmNnXc=; b=mneSjo78IDpuRDUYr/4a7sMWZfTvr6rd27cYwyFXX6DxEbuQzdOTbDNMdyenmSYBLY WD673NRmhk9+k6/0/ug27z4dySIj+Ry6HDiNw/YlSdSIp6UPYeyxuYC/vCsk3MlJWrRv /o+24UXCkh3BD2brRPL7IseuX8Bt1/6bCSdXvtUUos0OD3acDrhlYNMYuzHja2VsKPL0 +ckyVsUl5v8su+y0HVrSvWKlIvVE+Ew917SsZB1VD+xXBVBPVXC+UkHUVIvZt0RDm1Fl JP/U5QJfFdPdIpgxRusR7mZDCyx4XbN3KJcXEkADomsrlNlJwtqIsOVHPM/x2RTNxHsu QMXA== X-Gm-Message-State: AHYfb5h0DWjyHikSv/l9WyiyoaI7xrfrqeZLVHfsbozlC9K8sMWAJzpg GynLZV+FaqUfVg== X-Received: by 10.98.68.213 with SMTP id m82mr485150pfi.171.1503736625882; Sat, 26 Aug 2017 01:37:05 -0700 (PDT) Received: from gmail.com ([117.196.107.182]) by smtp.gmail.com with ESMTPSA id d88sm14472364pfl.158.2017.08.26.01.37.00 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 26 Aug 2017 01:37:05 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 26 Aug 2017 14:06:57 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, crope@iki.fi, mchehab@kernel.org, hans.verkuil@cisco.com, isely@pobox.com, ezequiel@vanguardiasur.com.ar, royale@zerezo.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH 11/11] [media] airspy: make video_device const Date: Sat, 26 Aug 2017 14:05:15 +0530 Message-Id: <1503736515-15366-12-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503736515-15366-1-git-send-email-bhumirks@gmail.com> References: <1503736515-15366-1-git-send-email-bhumirks@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- drivers/media/usb/airspy/airspy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/airspy/airspy.c b/drivers/media/usb/airspy/airspy.c index 07f3f4e..e70c9e2 100644 --- a/drivers/media/usb/airspy/airspy.c +++ b/drivers/media/usb/airspy/airspy.c @@ -859,7 +859,7 @@ static int airspy_enum_freq_bands(struct file *file, void *priv, .unlocked_ioctl = video_ioctl2, }; -static struct video_device airspy_template = { +static const struct video_device airspy_template = { .name = "AirSpy SDR", .release = video_device_release_empty, .fops = &airspy_fops,