Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1271656imd; Sat, 27 Oct 2018 05:53:08 -0700 (PDT) X-Google-Smtp-Source: AJdET5cGk+zUsoY85+M8/6f+kqz7rdwIi7yvefBTK7BV7GDr+aXtxfF7sA1/OIOyPbbeddw8oxoj X-Received: by 2002:a63:d705:: with SMTP id d5-v6mr6994481pgg.27.1540644788604; Sat, 27 Oct 2018 05:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540644788; cv=none; d=google.com; s=arc-20160816; b=Kqe4v5RA9AgfSbuvmzi/obVEa7q+OZuPjBphRRW4FdIIXZ3RvKGiCLUO96diUz3wOs xmjjNyhEQbCY1+khSkmsx4IHcqX4ozbZoQkpUOTNilzSHjAKEVUXLthOIhE29iBm9CLO y99eve4T86gwHuZI4q9ts+uM0WA9io1b97wutDGSuO/BerG8I1/PTwzSdJTk2OCO5vds 3jpU1JDAZt8e6XpbuTm37JifrQJrrT78erb3w8Cl5bTSLifJViA+n3A7fm1HFOt6a2E0 xyJuJOEhcjN+O0qP9cHmbpA4sM3/uqP4QvgGfU0FmB3r9Xu6x09Iaiv1XMZbLUTEwyRB foew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=VlF7Edv1n65Gld4ixc3EEyTeEwcJmuqso62vA38Rnsc=; b=R2ka6KdSorktHcOlm0Rof172xXQEjWUwKT8kpmiPclPNTUXZtf9zYEY/oRXrkm+/xh q6Omadc4/+JPSXnLGIqCfNRkhY11I3NqB8Iu4dsPFzADBcGOj93n2w9U46BCoUEjP9CY OYiYFoQX5oIgSnTguSRU1MJ2NWNCaCo3d/zPWs1OQC+iyhtX+HSvMdP6Ox76+9oDhcIy 133pk3tIfVcnjntL8gqz3br1GNIGQdlryGg5Hymk313gwsgJf0YWWeZIzfN4F2k7nOJ5 bn7oaViq27cTQUTsDPG0pLLlWXBk5yymASfahMWlQFcbVCC1Atk5czG7Bf/i+GlaOeYi Or2A== 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 gn9si13450937plb.71.2018.10.27.05.52.52; Sat, 27 Oct 2018 05:53:08 -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 S1728654AbeJ0Vcx (ORCPT + 99 others); Sat, 27 Oct 2018 17:32:53 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:40941 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726254AbeJ0Vcx (ORCPT ); Sat, 27 Oct 2018 17:32:53 -0400 X-IronPort-AV: E=Sophos;i="5.54,432,1534802400"; d="scan'208";a="283509233" 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 14:51:56 +0200 From: Julia Lawall To: Mauro Carvalho Chehab Cc: kernel-janitors@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] media: ov5645: constify v4l2_ctrl_ops structure Date: Sat, 27 Oct 2018 14:16:40 +0200 Message-Id: <1540642600-25840-3-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1540642600-25840-1-git-send-email-Julia.Lawall@lip6.fr> References: <1540642600-25840-1-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The v4l2_ctrl_ops structure is only passed as the second argument to functions such as v4l2_ctrl_new_std for which the corresponding parameter is const, so make the v4l2_ctrl_ops structure const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/media/i2c/ov5645.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -u -p a/drivers/media/i2c/ov5645.c b/drivers/media/i2c/ov5645.c --- a/drivers/media/i2c/ov5645.c +++ b/drivers/media/i2c/ov5645.c @@ -886,7 +886,7 @@ static int ov5645_s_ctrl(struct v4l2_ctr return ret; } -static struct v4l2_ctrl_ops ov5645_ctrl_ops = { +static const struct v4l2_ctrl_ops ov5645_ctrl_ops = { .s_ctrl = ov5645_s_ctrl, };