Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp994221imd; Fri, 26 Oct 2018 23:25:01 -0700 (PDT) X-Google-Smtp-Source: AJdET5eZCLtsm+QO6/336/jGx9ckhqMhGVYthxNsHRJwQoneS8qcTTgOByJLTTisRETDKFZdKCwC X-Received: by 2002:a17:902:28e7:: with SMTP id f94-v6mr6323769plb.297.1540621501001; Fri, 26 Oct 2018 23:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540621500; cv=none; d=google.com; s=arc-20160816; b=0v/e3LSS4NuRb+fJwyu2mZ6B8wyUlW7HsGN8tp+BzJkaxMlS5q+B5CF5TIKC6dc48e DVaIYeO7nKfHdkCG6WB9t/EUf/H89pVHJljp/zuydkzXY+k17ITKRzjSVmXJuefB/EbT WSsuXloWbd3ITbISs8WMy9Qy+GFl/hcvfP6IVrRe/FdY+xOmeD+0g03dHLRrbI/k1L6y 1Kr76yrHlcj+3KD1qHJ0PhYxJaId8/BlPwi2zoVVeBTdFvL29V00YFiIPdxgz4hfwmIP rwnzkA19UmTbazPpAHfjJwj5lKXGZxa6M2yYQ1zlAnD1vozFWQPGVhjGka031PNstX4F w8cw== 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=t9PyH3JiArod/cASiNlWjMfS1BKnaU2n5KOKiKxiCwI=; b=R2XQfzAhfFIC1rV3vAej/3/XoIoYwkk1lhN44sBdJak9h0vwx8OJ3NH3LO1slW7USV LuqZMzyDaUABHQ0Eq5vfit6G4u9Vhti4RP39rV12a6/67pT5KgeQ/ASX4M3EOA8FMzHz XQoUxmCzg54G/+PNhW0KN9Vb2CoNhD8Q6XdIqdOLFaY4yvMDWkUwhjvFIZVb+lCYvtsi Bd1DZosmD/tn9Ff2Z+o74NHElVuXW8sGAZFXIpLBimF2peP3UuH6GDNtuy0LHnPE6EPI LmOcy+klmOm72ZYdu6QgwERMDQFeyQks5suNJUxls7WlsNORrtN2qMeJdZK+XJFqE7Tt X2HQ== 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 n7-v6si12900511plp.43.2018.10.26.23.24.45; Fri, 26 Oct 2018 23:25: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 S1728131AbeJ0PDC (ORCPT + 99 others); Sat, 27 Oct 2018 11:03:02 -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 S1727845AbeJ0PDB (ORCPT ); Sat, 27 Oct 2018 11:03:01 -0400 X-IronPort-AV: E=Sophos;i="5.54,430,1534802400"; d="scan'208";a="283492152" 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 3/8] clk: palmas: constify clk_ops structure Date: Sat, 27 Oct 2018 07:47:37 +0200 Message-Id: <1540619262-22681-4-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 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-palmas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-palmas.c b/drivers/clk/clk-palmas.c index e9612e7068e9..e41a3a9f7528 100644 --- a/drivers/clk/clk-palmas.c +++ b/drivers/clk/clk-palmas.c @@ -115,7 +115,7 @@ static int palmas_clks_is_prepared(struct clk_hw *hw) return !!(val & cinfo->clk_desc->enable_mask); } -static struct clk_ops palmas_clks_ops = { +static const struct clk_ops palmas_clks_ops = { .prepare = palmas_clks_prepare, .unprepare = palmas_clks_unprepare, .is_prepared = palmas_clks_is_prepared,