Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp993413imd; Fri, 26 Oct 2018 23:23:54 -0700 (PDT) X-Google-Smtp-Source: AJdET5dLV97nuLfWIyvPUa9qCFm1v4FR8JJqagJX+cusr+4HK0IELYrKWAT0Os8uoUU36K8VK8A7 X-Received: by 2002:a62:7e93:: with SMTP id z141-v6mr4254379pfc.241.1540621434226; Fri, 26 Oct 2018 23:23:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540621434; cv=none; d=google.com; s=arc-20160816; b=ZfvPxjTAVyH/Eg2sL/gGTDbeiVGv3FNErgRe4Kgaw6YHlcV6zo2j11ewvwodWB/jGR vfjTQI3dKD2osNzJX8rHTzLLFwGveulrTu/46bNB5Ce8vRjVtkEhE0h5vX8uoXf6t/D9 BtDhRC4UdD3HuS3xtnbnsHlQKwbaRQmxeNTsmfp7tldpGPCWcdU8kZYLf09QN7sWhMOo cmt688Gi76CBV4/vtcPl+ho0iIDJVoo2jZ3tvt60Fly73a1jO0HBrFU7SIQ9ZDmTDAZi XrDLO4DrzQAZOuqFO+3kCkt5mVs8HEvYTgi5i2TexWVKDhmgEkp+E6lIwmPnm0pwDr+G 3iHg== 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=R1Gkj7GPWwGOLZGvyGo5JLMkp5LE1bbTLV6N64U74hk=; b=wys3BCuZjjG59HDYhr8+jSqRp9MNY5tO41L2gqjU0/GwFr0tfh3432mFvwEMkcTYq7 qJ5n1n9bTUaHfJrEY4OuULES6qAPTWb+Fj1wBTx1L7MPivhl8HXSU3ri5mtfxnlw2IXd ZQDGpJOqm8gi/1jprNprnHK55Mb/u+CG4FUUF/mgt3wKJM6Cdh8oIJr84Uqn+RF5ortc phRO7s8Dn9OLnFDeK4F2Oic3NBXa17ZMPMIFWFFD+naMU330NzcFrtsHWplSBgERSggq WUytBHf8ZURdElZyciu/lfmY/XIyUPwZ+2LawvvOoU9n5wsfuZc/u896qtYlzJeqJtvg K8Gg== 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 m37-v6si13833632plg.228.2018.10.26.23.23.39; Fri, 26 Oct 2018 23:23:54 -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 S1728295AbeJ0PDG (ORCPT + 99 others); Sat, 27 Oct 2018 11:03:06 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:40762 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728224AbeJ0PDG (ORCPT ); Sat, 27 Oct 2018 11:03:06 -0400 X-IronPort-AV: E=Sophos;i="5.54,430,1534802400"; d="scan'208";a="283492157" 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: Rob Clark Cc: kernel-janitors@vger.kernel.org, David Airlie , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] drm/msm/hdmi: constify clk_ops structure Date: Sat, 27 Oct 2018 07:47:42 +0200 Message-Id: <1540619262-22681-9-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/msm/hdmi/hdmi_phy_8996.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c b/drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c index 0df504c61833..b19a520c47d5 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c @@ -689,7 +689,7 @@ static int hdmi_8996_pll_is_enabled(struct clk_hw *hw) return pll_locked; } -static struct clk_ops hdmi_8996_pll_ops = { +static const struct clk_ops hdmi_8996_pll_ops = { .set_rate = hdmi_8996_pll_set_clk_rate, .round_rate = hdmi_8996_pll_round_rate, .recalc_rate = hdmi_8996_pll_recalc_rate,