Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp993788imd; Fri, 26 Oct 2018 23:24:25 -0700 (PDT) X-Google-Smtp-Source: AJdET5e8nAnVaGu94QJvS0I6+ogT7v89HE5HUcO9j3EgafiRw0OeL8CtEketDfNRHoH5o1soSGEh X-Received: by 2002:a62:3911:: with SMTP id g17-v6mr6952170pfa.170.1540621465622; Fri, 26 Oct 2018 23:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540621465; cv=none; d=google.com; s=arc-20160816; b=Lgyj7OvhY+dF14AEAHjv+SXhldjpfCRpcpaexOFakG+YbaSw8qg9eOB15+1i6tD+eF o1Wm6kVxNCl2k+9C/RGTEDBk/2vQ5CS/9Hc4pP06bcY6GtWhZ6aWg1+lsVbFr+yQIaxj S4m8OTOq5vbydSeFRN9vjdZXXrE5o2VGFTU+6glQd2LpmPNd2p6dfHmrwvMRJ8TTmK6P n9FyXEgLoeIPOps9O9Kr1ylBRV1YLHGBoGHtTMcUqbnNjuoJuYiLdhF9dx1GiQ91xgHl 4qJEAYxmrB+R0uPcRaQDMF+lrY36/aapeaQtXdfMHzW/wVx513X6HKMthiHOhWttJQMh 8v2A== 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=dlRZvf02/WKPyU8115hlCWOb40WEMnySH/FvO+fTTxE=; b=gBNwbx/Mtw2pXprpGW4B9yyJ4TRgEeq4Mga9SsniqPpPSaByRcf3h9cE94PowQ3scA 7eUxdcCCYA7ECqukSxZELjd7XyHjMEU5bp2F6/5UswPLqi16OTTZwUVTtd7az3vbgvws cZi0Zt8SchF3vr2m2TMA3t18cjTczZsY8ALGowS22W0Yku59ERqNNoUXmhYmiT/O0bhA PQzC3WdDjKOtcrQB5XS4JrUUYnKLhFncoGOutO5OkhzEfGGBf47M2FZSAOEowwj1B//6 8JE6co1dBqGwA79YIfs/vxqtJBrUCu0igm48W43bB1zoRF9PXEAdv/fOTDc/qLmPnAWM BiFg== 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 b34-v6si13317691plc.428.2018.10.26.23.24.10; Fri, 26 Oct 2018 23:24:25 -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 S1728244AbeJ0PDF (ORCPT + 99 others); Sat, 27 Oct 2018 11:03:05 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:53787 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728212AbeJ0PDE (ORCPT ); Sat, 27 Oct 2018 11:03:04 -0400 X-IronPort-AV: E=Sophos;i="5.54,430,1534802400"; d="scan'208";a="283492156" 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 08:22:59 +0200 From: Julia Lawall To: Philipp Zabel Cc: kernel-janitors@vger.kernel.org, David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] drm/imx: imx-tve: constify clk_ops structure Date: Sat, 27 Oct 2018 07:47:41 +0200 Message-Id: <1540619262-22681-8-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1540619262-22681-1-git-send-email-Julia.Lawall@lip6.fr> References: <1540619262-22681-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 clk_ops structure is only stored in the ops field of a clk_init_data structure. This field is const, so the clk_ops structure can be const as well. Identified and transformed using Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/imx/imx-tve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/imx-tve.c b/drivers/gpu/drm/imx/imx-tve.c index 4bc3ead5c4e3..293dd5752583 100644 --- a/drivers/gpu/drm/imx/imx-tve.c +++ b/drivers/gpu/drm/imx/imx-tve.c @@ -434,7 +434,7 @@ static int clk_tve_di_set_rate(struct clk_hw *hw, unsigned long rate, return 0; } -static struct clk_ops clk_tve_di_ops = { +static const struct clk_ops clk_tve_di_ops = { .round_rate = clk_tve_di_round_rate, .set_rate = clk_tve_di_set_rate, .recalc_rate = clk_tve_di_recalc_rate,