Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp993344imd; Fri, 26 Oct 2018 23:23:49 -0700 (PDT) X-Google-Smtp-Source: AJdET5fgkv09JZNjchce8NyucvmqBNUNL/O7T3xqImEE4aSlviUGzIJM3oautMcTmsHH9g81YnUM X-Received: by 2002:a63:fd09:: with SMTP id d9-v6mr6343021pgh.164.1540621429010; Fri, 26 Oct 2018 23:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540621428; cv=none; d=google.com; s=arc-20160816; b=LE7M0zopCNAP1fis9c5CZ0iD6xfLSQViODI6KCtM4qVm+kznNGgeP3blZ1Bg5/486x xrrslLZm2UZym8LrET/AAkjzUfGoeybwjn4O7EydObP7hxc1ykw3uZiEIqW/RYw8M6vF lfG6G7o1Je6UNTgiQa6BINan44eOOfuH+ACAfWIZZ0n8/Fpd3MIRoX9G+ddSnnI59/98 JYMM2zJpM7QnXRVFIrYmU9udU4DnPYi3w5ZdC9L4jpoSx19Yf3/b/3lo1//J8VdHh/2I Vfz+Lx/kKpT3yK/X9Hr5MPIKe4EzA+7rKVHaU052KuGll9vjYAe0BowHR0BM+rcg7Q9g oJ+Q== 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=oYP6srRfdul1vP2kLgB0RHC4qgj5nNCSbrpiPSXYjWI=; b=deHaPFKRx67U+YEgYPGs/IbeE81cW4Ag08sq3lRaujJgQ+jCTdlQ3rpHiEJoN4hnNm SpZtChWv3NzeHFy33+ASzDHa4IoE9eHSkt0kMboCIWfkbF8RSY/+MSAptnRqy/Ql/L4e S00t1y8Uc3FMgh0dC1n8K6Em0CdO0g1b8eIZnukkhP1pvgABKo8bU0y9meoFBMlGIL1n SexKarvpuHxIHl3UPuDjPyZiXLuWSAJG7tgOUGnE5eEsTDvfKw47u2qM9P6D5qP7qvDt xmTf1oSFhpbFe1tZHLgA10V0JEddLxB3hw2rZ66a7bqKin9ndIcigsrIcSOJ779VEpTP vlcw== 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 r17-v6si13349539pgh.56.2018.10.26.23.23.33; Fri, 26 Oct 2018 23:23:48 -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 S1728216AbeJ0PDD (ORCPT + 99 others); Sat, 27 Oct 2018 11:03:03 -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 S1728014AbeJ0PDD (ORCPT ); Sat, 27 Oct 2018 11:03:03 -0400 X-IronPort-AV: E=Sophos;i="5.54,430,1534802400"; d="scan'208";a="283492151" 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: Liviu Dudau Cc: kernel-janitors@vger.kernel.org, Sudeep Holla , Lorenzo Pieralisi , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/8] ARM: vexpress/spc: constify clk_ops structure Date: Sat, 27 Oct 2018 07:47:36 +0200 Message-Id: <1540619262-22681-3-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 --- arch/arm/mach-vexpress/spc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-vexpress/spc.c b/arch/arm/mach-vexpress/spc.c index 0f5381d13494..611f22de48cb 100644 --- a/arch/arm/mach-vexpress/spc.c +++ b/arch/arm/mach-vexpress/spc.c @@ -521,7 +521,7 @@ static int spc_set_rate(struct clk_hw *hw, unsigned long rate, return ve_spc_set_performance(spc->cluster, rate / 1000); } -static struct clk_ops clk_spc_ops = { +static const struct clk_ops clk_spc_ops = { .recalc_rate = spc_recalc_rate, .round_rate = spc_round_rate, .set_rate = spc_set_rate,