Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp993468imd; Fri, 26 Oct 2018 23:24:00 -0700 (PDT) X-Google-Smtp-Source: AJdET5fI2F0QBvi/3tz7hSFKLhC+ZXqIVMwda/rSxobzjqBgo/fulQcpvUxYu1Yj9moYmxohTECL X-Received: by 2002:a17:902:d704:: with SMTP id w4-v6mr6414587ply.230.1540621440864; Fri, 26 Oct 2018 23:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540621440; cv=none; d=google.com; s=arc-20160816; b=SXCZPNZYpiWVzsBruulQNCh+FBlFrP7XUgCRBuU6gCd5L68nv8SaOxfsZ6/TeoXgA3 FkrL9fogPo253WKR1/x3RhjArqlSbqN744NP8S2ou9aZw0CS1io6L51MbAABBnvT13rc lfQxaEEeXHZtasFECRzYrrXnCH/6PBKTb+AwETQmUNCY0m8QKLJGw5WQOIDDhceftqqq Y+TN5D7mnxSpJLj4sBXZabX9xbA83DZAJv285+5canQPYh9iM5lavEn8Xiil5WE7EF9I cbgblIcVrfeNqT2rZUEEk9dToJ/zjZ6fq+pi732IagpT5AUQag5ntaMPmiTZMHx9Gkyz MNPA== 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=2KP1CPckDsDi1yzELlKvfoSp2WwFsPlWTpGxxHY6MW4=; b=hV4jsA+WvhU6xYxBbNAikTXH8vrGKOFczKAEqiNio8liB6QowvLbNJiGE8YGI2+7PD juT5vQfj1/yi3v8ftkcfzUfuoXerT8BWmcOuLlMD1NF/dg8PHqK9EG71p18A6CLisirW A9JKRy13s5iUDar/gyhCAZBaosDjh29q3JwKpgNup9ApOj7PxUkxtvBH1FtfWXal63P4 KZp5u6f8NrV2yzKf56NH+WBcCv1bNvIozVeVf+mTY4QaOO2gL4g1uQIyzQx/W1mNrsQU SAT3i4tr8fBJcA6dIAha3xt8SDtmW9MsDJfILBHyP508+EvGw1yNwHNdHLqkKS0yDJQ6 XISA== 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 v14-v6si8277056pgi.5.2018.10.26.23.23.46; Fri, 26 Oct 2018 23:24:00 -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 S1728318AbeJ0PDN (ORCPT + 99 others); Sat, 27 Oct 2018 11:03:13 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:21590 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728014AbeJ0PDG (ORCPT ); Sat, 27 Oct 2018 11:03:06 -0400 X-IronPort-AV: E=Sophos;i="5.54,430,1534802400"; d="scan'208";a="283492155" 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: Sangbeom Kim Cc: kernel-janitors@vger.kernel.org, Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 6/8] clk: s2mps11: constify clk_ops structure Date: Sat, 27 Oct 2018 07:47:40 +0200 Message-Id: <1540619262-22681-7-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 fields of clk_init_data structures. 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/clk/clk-s2mps11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c index 5b419b82f7ca..2ce370c804aa 100644 --- a/drivers/clk/clk-s2mps11.c +++ b/drivers/clk/clk-s2mps11.c @@ -71,7 +71,7 @@ static unsigned long s2mps11_clk_recalc_rate(struct clk_hw *hw, return 32768; } -static struct clk_ops s2mps11_clk_ops = { +static const struct clk_ops s2mps11_clk_ops = { .prepare = s2mps11_clk_prepare, .unprepare = s2mps11_clk_unprepare, .is_prepared = s2mps11_clk_is_prepared,