From patchwork Thu Oct 19 10:59:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 10016423 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6683A600CC for ; Thu, 19 Oct 2017 10:59:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51EE928CC4 for ; Thu, 19 Oct 2017 10:59:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45F9728CD2; Thu, 19 Oct 2017 10:59:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5D2728CC4 for ; Thu, 19 Oct 2017 10:59:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752746AbdJSK7c (ORCPT ); Thu, 19 Oct 2017 06:59:32 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:48788 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751836AbdJSK73 (ORCPT ); Thu, 19 Oct 2017 06:59:29 -0400 Received: by mail-wr0-f193.google.com with SMTP id u5so7878802wrc.5; Thu, 19 Oct 2017 03:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AD6q9z6sEC9NOLN4EQ+feQq6BpNltyCyofc5+quTN3Q=; b=QmO0gf/GrL7kZj/qS9w8CRaCU59d+6b5d0CcX+SyYcY7vk17QwzBQxtuKSm3YWSNXJ qTW/j7pR/Fdr7e9Ork+l8tJzY6zjButUFRHj+eGZU6hTDJa1iqJI25138B8s+wEVzik4 eJu95EqEjk1zt9i/iMt72Y+WOKO7sUfrgMk3LxiDlrkBgao2BqzKZC+1SV80zawn6qr0 qoqPjSlZvB5qATsIPLzsLZiBJcXad2KXqTrkL7BbJJ8Kc+5r4PnVFJ+Dp8LOYNLoD2mh Ualvumnca2J2MHQ5zKCB3m5jM/42LsNA9wA3Wx8JzLJaWBdOKIerZ/yf+v/I/U9aJr7/ DnCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AD6q9z6sEC9NOLN4EQ+feQq6BpNltyCyofc5+quTN3Q=; b=VRZHo+57IxLcoqzimCyM8ubqJ8U5/8wsA1IQMiCKZOsDRcH6LUsIUqCORwS2xHGFHG LkG3CigS4ZypWiDeY6KIV5ag1Nj73ZPTX/HHaAnjQnrGVZ3O3Bzoa2t5ExDEfFcufM0i 22grIuusRf4AMxTtL+iWj0ATHFKmALIvai/+5B/vn9xMwGYfj4O4lerBxm5AjgV0fz6j Sw6CCWo+AI9qSXJ7n/TrmDEsaeFkXAUa8t38l825aKdNpgLDCr7wDhRjuJ9moX7+HTEB GTpki6mYnVNs+8zliFLuilD33L0os7MZXE8QRV6Uk1TGlHVjSrZXaaq2cPRXO7n71u+s 3m1Q== X-Gm-Message-State: AMCzsaW+Re2yUEg6RGyspakFNJqOz9m/E55vFeRO0MjL1zgJbm19A5nW YyCOuKL7KDdP3SnY1rJmta0= X-Google-Smtp-Source: ABhQp+Sezk0Dk1EhlYqj48oqKGYM1hCvBQaS46aJbhh8kQjXsDArgCCvjvgWJONFY1JrApMI9vJVoQ== X-Received: by 10.223.160.141 with SMTP id m13mr1114036wrm.35.1508410768284; Thu, 19 Oct 2017 03:59:28 -0700 (PDT) Received: from gmail.com (dell-goyal.wifi.rsr.lip6.fr. [132.227.77.190]) by smtp.gmail.com with ESMTPSA id s67sm1732514wmd.23.2017.10.19.03.59.26 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 19 Oct 2017 03:59:27 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 19 Oct 2017 12:59:25 +0200 From: Bhumika Goyal To: julia.lawall@lip6.fr, viresh.kumar@linaro.org, sudeep.holla@arm.com, rjw@rjwysocki.net, liviu.dudau@arm.com, lorenzo.pieralisi@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Bhumika Goyal Subject: [PATCH 2/2] cpufreq: arm_big_little: make cpufreq_arm_bL_ops structures const Date: Thu, 19 Oct 2017 12:59:15 +0200 Message-Id: <1508410755-13666-3-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508410755-13666-1-git-send-email-bhumirks@gmail.com> References: <1508410755-13666-1-git-send-email-bhumirks@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make these const as they are only getting passed to the functions bL_cpufreq_{register/unregister} having the arguments as const. Signed-off-by: Bhumika Goyal --- drivers/cpufreq/arm_big_little_dt.c | 2 +- drivers/cpufreq/scpi-cpufreq.c | 2 +- drivers/cpufreq/vexpress-spc-cpufreq.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/arm_big_little_dt.c b/drivers/cpufreq/arm_big_little_dt.c index 39b3f51..b944f29 100644 --- a/drivers/cpufreq/arm_big_little_dt.c +++ b/drivers/cpufreq/arm_big_little_dt.c @@ -61,7 +61,7 @@ static int dt_get_transition_latency(struct device *cpu_dev) return transition_latency; } -static struct cpufreq_arm_bL_ops dt_bL_ops = { +static const struct cpufreq_arm_bL_ops dt_bL_ops = { .name = "dt-bl", .get_transition_latency = dt_get_transition_latency, .init_opp_table = dev_pm_opp_of_cpumask_add_table, diff --git a/drivers/cpufreq/scpi-cpufreq.c b/drivers/cpufreq/scpi-cpufreq.c index 8de2364..05d2990 100644 --- a/drivers/cpufreq/scpi-cpufreq.c +++ b/drivers/cpufreq/scpi-cpufreq.c @@ -53,7 +53,7 @@ static int scpi_init_opp_table(const struct cpumask *cpumask) return ret; } -static struct cpufreq_arm_bL_ops scpi_cpufreq_ops = { +static const struct cpufreq_arm_bL_ops scpi_cpufreq_ops = { .name = "scpi", .get_transition_latency = scpi_get_transition_latency, .init_opp_table = scpi_init_opp_table, diff --git a/drivers/cpufreq/vexpress-spc-cpufreq.c b/drivers/cpufreq/vexpress-spc-cpufreq.c index 87e5bdc..5323728 100644 --- a/drivers/cpufreq/vexpress-spc-cpufreq.c +++ b/drivers/cpufreq/vexpress-spc-cpufreq.c @@ -42,7 +42,7 @@ static int ve_spc_get_transition_latency(struct device *cpu_dev) return 1000000; /* 1 ms */ } -static struct cpufreq_arm_bL_ops ve_spc_cpufreq_ops = { +static const struct cpufreq_arm_bL_ops ve_spc_cpufreq_ops = { .name = "vexpress-spc", .get_transition_latency = ve_spc_get_transition_latency, .init_opp_table = ve_spc_init_opp_table,