Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1317442imd; Sat, 27 Oct 2018 06:44:11 -0700 (PDT) X-Google-Smtp-Source: AJdET5fAg6jUHcPVPFYER2mNOCq64xFNDCjpdlAi3E9uOL7aUxe/1wVU/Cz7HMFU00i+32qmoExS X-Received: by 2002:a63:ec11:: with SMTP id j17-v6mr7135588pgh.388.1540647851492; Sat, 27 Oct 2018 06:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540647851; cv=none; d=google.com; s=arc-20160816; b=bPWt12bIXqqNVNzD6in5M+RtsbYQPianIU3z+cuwhV08vKUQUfupLS8WZkkRAg1jXI imO3kbaAq4iicgGT8NRmzW3SiZ1YShNyGNfAm9T22cubWjDliaGk1Vtq2joEoXZ/jmxO t1zwPM7aNoHCGcD9C5NXzI/IM/eSjJxUBGJomiyNYvM/hEGKT3OUlGpM3sn7/H9GpVwi KUwHzkG4ikfNiuIui2q5+28FKtXAZfaGiEF0xT9yZWWV1qQlJ1TANmlQxpXs7RF5t5Rs qskwFIeYZtQXqvv+HsxAD3ZeIb7JbmHiNIT0K4XSl/QcwB5vDWHV48tEdXHtRj/0VOWE 7iVA== 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=TLOkvWmSipnwVNaOrbEOVDOdExqJeFyL5e0abjqlvlQ=; b=WIF/MVWV2o9g+8iRZg7qJmO7eZNUhStR1+BgUGoOvTCyl15eBlgdMlg5YRCAYnr5Gc UpSgsL0bqDygus0mRjnSHd4G2+tB0QvDUhyDoATymqBfADp+NsYLFkaiOYEIHe0t/Q3g +gt1vPHdz47OyvMOFdcHO8nKe8YZiefh0z3vJBQwh1ooYlCnIrD14c6Dp1aIBbD1r9Sy p3RYGPKXX0Vj6NAzKy+6aZM7zBcNq7rt5x5rvT0WhE5/Xa1mDEyKJd08qaSzPkf+74qO V20MprOO3IBMKgfaIKYhTZM77p3mUG87fAkPsRfqAMZ/SfiQG7iXv8QL5qJP8Ieg0FgN KhXQ== 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 d82-v6si388826pfe.190.2018.10.27.06.43.40; Sat, 27 Oct 2018 06:44:11 -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 S1728710AbeJ0WF1 (ORCPT + 99 others); Sat, 27 Oct 2018 18:05:27 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:10145 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728252AbeJ0WFX (ORCPT ); Sat, 27 Oct 2018 18:05:23 -0400 X-IronPort-AV: E=Sophos;i="5.54,432,1534802400"; d="scan'208";a="353089208" Received: from palace.lip6.fr ([132.227.105.202]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA256; 27 Oct 2018 15:24:20 +0200 From: Julia Lawall To: Helen Koike Cc: kernel-janitors@vger.kernel.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] media: vimc: constify structures stored in fields of v4l2_subdev_ops structure Date: Sat, 27 Oct 2018 14:49:05 +0200 Message-Id: <1540644545-26184-3-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1540644545-26184-1-git-send-email-Julia.Lawall@lip6.fr> References: <1540644545-26184-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 fields of a v4l2_subdev_ops structure are all const, so the structures that are stored there and are not used elsewhere can be const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/media/platform/vimc/vimc-sensor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/vimc/vimc-sensor.c b/drivers/media/platform/vimc/vimc-sensor.c index edf4c85ae63d..32ca9c6172b1 100644 --- a/drivers/media/platform/vimc/vimc-sensor.c +++ b/drivers/media/platform/vimc/vimc-sensor.c @@ -286,7 +286,7 @@ static int vimc_sen_s_stream(struct v4l2_subdev *sd, int enable) return 0; } -static struct v4l2_subdev_core_ops vimc_sen_core_ops = { +static const struct v4l2_subdev_core_ops vimc_sen_core_ops = { .log_status = v4l2_ctrl_subdev_log_status, .subscribe_event = v4l2_ctrl_subdev_subscribe_event, .unsubscribe_event = v4l2_event_subdev_unsubscribe,