Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2256647imd; Fri, 2 Nov 2018 08:24:28 -0700 (PDT) X-Google-Smtp-Source: AJdET5fcWjSQs2b3p6tZn86QAib8+dwyeSG7sanMSlPoZtdCb9XOuopImgobyn2JFaFZ7nih+YGG X-Received: by 2002:a62:5f05:: with SMTP id t5-v6mr12169973pfb.223.1541172268690; Fri, 02 Nov 2018 08:24:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541172268; cv=none; d=google.com; s=arc-20160816; b=omEzqPuE8mBSs9cq34PWmMENnIBOAXJ1zOmT1egqIMyDZfAq7zZo9aT2pv1Cwkvpfw F7jnTSnPORbYAR10QVopwFy1y8PYMIaYkk9YqRyyM+Y6IdXaPexUSnaBUvAxy4J4kJYW o3HgzVBQXe+JJQKKblqugI70bYShrjZElVpTQJEtySnO9qtfYVq2H/8K5cL0NZ43EJUh P76ylZzsL+lod0hJASpVFB+D3VYoHqcuFDvZQKeg6PzvbU4cUibWdw/G1xrPenBF42Wg C+u1ECmTgH2TZD946o/u95HSW/SsDmlXHPIJAxVOgaidGIjVWoc092FDKRFJkqgqy4BO Sz5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=139LkNPBfZk2nQAGOWebnBVZVtiIuGAekzMP5IVU35g=; b=PFyVLwsIxQE3+LxbyUZ6QVA2IxQot6v4d0rTLM4oa9lq0WSO2qbFMthXNYxCeNDCdn 4Xu8GDmBcB33aeA5OMYcSA5ZtgtKIhuU31p5puvp+J2HWZbdQpNMOlCSgx7IbUTxu0p+ vV/yOxHVGv3f0/SRmmNT2roTGXMRoCJfMq4mkV3r7kmKj5C62Ox5VrL1uc9VmnttoYKo FJRH+Q5x8gSaeJiQrs5pKDzaKNUI6aFMneIUTKg/7CEP9sS5dXtbFqc5HvHiQmPp/JrY rTEvkmKuDKGBgE0sZ3lyEVRpZiTxVmhOUPtPJw3W27OtFqOfwHbIP+DJ/ztJJrRTXF/R bn2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 89-v6si17694601pld.274.2018.11.02.08.24.13; Fri, 02 Nov 2018 08:24:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727277AbeKCAbF (ORCPT + 99 others); Fri, 2 Nov 2018 20:31:05 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:9126 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbeKCAbF (ORCPT ); Fri, 2 Nov 2018 20:31:05 -0400 X-IronPort-AV: E=Sophos;i="5.54,456,1534802400"; d="scan'208";a="353920519" Received: from palace.lip6.fr ([132.227.105.202]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA256; 02 Nov 2018 16:23:37 +0100 From: Julia Lawall To: Jacob chen Cc: kernel-janitors@vger.kernel.org, Mauro Carvalho Chehab , Heiko Stuebner , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: rockchip/rga: constify video_device structure Date: Fri, 2 Nov 2018 15:48:15 +0100 Message-Id: <1541170095-24104-1-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The video_device structure is only copied into another structure, so it can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/media/platform/rockchip/rga/rga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/rockchip/rga/rga.c b/drivers/media/platform/rockchip/rga/rga.c index 9cc9db083870..4d3e08584027 100644 --- a/drivers/media/platform/rockchip/rga/rga.c +++ b/drivers/media/platform/rockchip/rga/rga.c @@ -700,7 +700,7 @@ static const struct v4l2_ioctl_ops rga_ioctl_ops = { .vidioc_s_selection = vidioc_s_selection, }; -static struct video_device rga_videodev = { +static const struct video_device rga_videodev = { .name = "rockchip-rga", .fops = &rga_fops, .ioctl_ops = &rga_ioctl_ops,