Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp993663imd; Fri, 26 Oct 2018 23:24:17 -0700 (PDT) X-Google-Smtp-Source: AJdET5ckEoCw4gV24TX1f9ZNnfDgpBwPuT7PtJR1SxyPGJ8lcyiIDXWWvgmkkiGER2/j6yN5gKA+ X-Received: by 2002:a63:9b09:: with SMTP id r9-v6mr6188679pgd.307.1540621457116; Fri, 26 Oct 2018 23:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540621457; cv=none; d=google.com; s=arc-20160816; b=bzd5mWQRBZ1LBc9a6r1CWpq/5zJ+YnXRPqq7I1nD3sxiyQMf9QSwRcc7enlu+60h3T SsoFLCKji0QlIw8lm4cQpgWgLtjz/WhMmHtslu+YaxNhMO0v7blbBXi/lzVQ8ryflBlS 4JFm82DuY4OeZdZoIOItwMPzJZoSACpaWkXkdDBCWtwnP0kyUpBFAGabBZrmQBkJlvyw FIerGvKVYeQx5AuEFPA8BuAQ5hrKJvqgRTgGjqqFK2UVeZXndzlfecte+oQAsswIbCu3 Y9gPLEpZ4q05JL92Xt4ojIEA03r+Bwd574aTC1L3wv4V60IkpudfCVcIAV5xYCfQ2SI+ UjuA== 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=qcGDS4lkCtK4pqXmWjqHZhrITdjGTxJgINGuK+gVZUY=; b=mKFAU4InSg+WVyt4Z0znUmN2FZtUEbK2Sn1xdZhcMPKtU2iP7X1CY+abCdGJ6PcTm0 ve9iwwdlUmYVyTRY0RPaj9GmE/0R94mtF+LwPG42psNodldmEDIr3ee7RI2G5Y2RZ1M8 rPVcInBeRqu9C/9bNRmHqfzSDBlT4cbaonUKYe+Tk85HGWT6D+D9/iGbHGpoF292PUpc kHrc4veF7+TG1hbi+LkEFLhag5BZQYdWKYVgEo1uXsPtrTmu5SSJhtOzq4EfbrlABMq1 J7JTWVDwAqujX+Msy4OCSH8JWuFzGsu6HdTjOU2GoXZRnKgTJ5dokO/S8pwds/AmsUfT rvBQ== 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 u192-v6si14122649pgu.449.2018.10.26.23.24.01; Fri, 26 Oct 2018 23:24:17 -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 S1728264AbeJ0PDF (ORCPT + 99 others); Sat, 27 Oct 2018 11:03:05 -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 S1728185AbeJ0PDE (ORCPT ); Sat, 27 Oct 2018 11:03:04 -0400 X-IronPort-AV: E=Sophos;i="5.54,430,1534802400"; d="scan'208";a="283492154" 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:58 +0200 From: Julia Lawall To: Michael Turquette Cc: kernel-janitors@vger.kernel.org, Stephen Boyd , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/8] clk: pxa: constify clk_ops structures Date: Sat, 27 Oct 2018 07:47:39 +0200 Message-Id: <1540619262-22681-6-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 These clk_ops structures are only passed to a call to clk_register_composite where the corresponding parameters are const, so the clk_ops structure can be const as well. Identified and transformed using Coccinelle. Signed-off-by: Julia Lawall --- drivers/clk/pxa/clk-pxa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/pxa/clk-pxa.c b/drivers/clk/pxa/clk-pxa.c index b80dc9d5855c..42627bf8a09e 100644 --- a/drivers/clk/pxa/clk-pxa.c +++ b/drivers/clk/pxa/clk-pxa.c @@ -70,7 +70,7 @@ static unsigned long cken_recalc_rate(struct clk_hw *hw, return clk_fixed_factor_ops.recalc_rate(&fix->hw, parent_rate); } -static struct clk_ops cken_rate_ops = { +static const struct clk_ops cken_rate_ops = { .recalc_rate = cken_recalc_rate, }; @@ -83,7 +83,7 @@ static u8 cken_get_parent(struct clk_hw *hw) return pclk->is_in_low_power() ? 0 : 1; } -static struct clk_ops cken_mux_ops = { +static const struct clk_ops cken_mux_ops = { .get_parent = cken_get_parent, .set_parent = dummy_clk_set_parent, };