Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1284600imd; Sat, 27 Oct 2018 06:06:27 -0700 (PDT) X-Google-Smtp-Source: AJdET5czFhkR5Wn/tVsIEL6n/D8iLF1RAevIMb3ZikeBEUi/RTGmGSMGo7h3hDwsvQjhTYHEid8v X-Received: by 2002:a17:902:22cc:: with SMTP id o12-v6mr7298698plg.108.1540645586963; Sat, 27 Oct 2018 06:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540645586; cv=none; d=google.com; s=arc-20160816; b=ZlqjF2ML5kmVOcIoxd8am5WNrLuZKyUJ8xXbOoWnDv70IgrqR4NwfYs6oTROxqyENX DK4vODQM8uq6nfcD/L/yg383EUeFjp9dBoA6jAXyvwTKCUT3DRrCXQZbT0mAe9aWks6F EP9DbBLJ/hw/qHjXGxLK+arln6aW/8udbylsD3f55uOb5l8hoNzHnaveYpsRB9DFJ+zH t9C1M2W8z8Kh9fbYtet+duj/HRfLl4UgSJarGkZrAj2ZmbB85sm1BtSyOV2wj70mo3y8 DRNBVz6HI3fp3BQUTCUCmY3dMilot9ra7sAYnwZWA5yW3ctQUE2F4uF2Sc0ujYA/8aeo h5SQ== 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=LLsxm6GQ6AjVpVzHjsTJZCtwInHBxOc4TcnyRJjTs7I=; b=naUWgvUYMS7E3o317ImpFuzcWYOQxBCCV9e2cIf6pN+VqLILtHuNvakcywYCeCAddt M3QCmh1Up8dEslNURinm4/74f9FeLMHvKypO1dFSp48UyG08GrzzWoijCUaCOt2iL+zO IjdIxJTHX+LJG/STeIBKat44x2D8BqOoV5ixP+yvBSXr+9RJIGS/avfrLuGUSg/AhpWE Ko7zIZoqoopHPKuktatvFLl2dJW9nV235axjoW93FQXej1aPAZgaqTklMwwFvUAZPaTr 5Dqo0806Y/ZztzOsr5LThNcn2UNx9rL6lAQ4XC+MwY9HdIFMVlPgcHghrP9Oelvgo/X/ gCgg== 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 a29-v6si4344763pfh.223.2018.10.27.06.06.10; Sat, 27 Oct 2018 06:06:26 -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 S1728656AbeJ0Vqp (ORCPT + 99 others); Sat, 27 Oct 2018 17:46:45 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:44233 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726254AbeJ0Vqo (ORCPT ); Sat, 27 Oct 2018 17:46:44 -0400 X-IronPort-AV: E=Sophos;i="5.54,432,1534802400"; d="scan'208";a="283509765" Received: from palace.rsr.lip6.fr (HELO palace.lip6.fr) ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 27 Oct 2018 15:05:46 +0200 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 v4l2_m2m_ops structure Date: Sat, 27 Oct 2018 14:30:32 +0200 Message-Id: <1540643432-25969-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 v4l2_m2m_ops structure can be const as it is only passed to v4l2_m2m_init whose parameter is 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..dc63c44929de 100644 --- a/drivers/media/platform/rockchip/rga/rga.c +++ b/drivers/media/platform/rockchip/rga/rga.c @@ -97,7 +97,7 @@ static irqreturn_t rga_isr(int irq, void *prv) return IRQ_HANDLED; } -static struct v4l2_m2m_ops rga_m2m_ops = { +static const struct v4l2_m2m_ops rga_m2m_ops = { .device_run = device_run, };