From patchwork Tue Aug 22 14:06:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9915331 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 79123603F9 for ; Tue, 22 Aug 2017 14:06:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6ABA228877 for ; Tue, 22 Aug 2017 14:06:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EAF928894; Tue, 22 Aug 2017 14:06:47 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham 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 027CC28877 for ; Tue, 22 Aug 2017 14:06:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932823AbdHVOGq (ORCPT ); Tue, 22 Aug 2017 10:06:46 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:38676 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932875AbdHVOGp (ORCPT ); Tue, 22 Aug 2017 10:06:45 -0400 Received: by mail-pg0-f65.google.com with SMTP id t3so7100009pgt.5; Tue, 22 Aug 2017 07:06:45 -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; bh=MYruzNAbJFYdSAyNrOU7oKHZwdFaqY1Uz6ZZlepRUeg=; b=oWxqWlPBLhHmw5H/qcyVqLHK1+NgEasIvw8912jR1UyQ7CYDayCsBmKdweOS2h3blK ObvbPlnoB7dV6CLVElLGtLZ98YCX6s3hZpmMh3Fiwwn0mKUo7Pih7nJI/uLWEutLeAYL pf8JENxD7Tn7O/7NJG4KXEicJXgdbpLTWa3cZn4sBYaQvvip2nSMbehkVi5bSud489+t aSnj/dbU+vlaBp2vt4IuGWmuC225rVXzqAS+169joYHulpilXXwR/LMeX2qKFNhLT0SA D2W3B1MYsaOsB17M3F8BCHVxbavrdcFSa+Ad26K4tYWQjmpULK5LWHQRjBXY2pePSGSb 0/8g== 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; bh=MYruzNAbJFYdSAyNrOU7oKHZwdFaqY1Uz6ZZlepRUeg=; b=D55TIWXnwTicbXwzR2oa5V9DbUxGNCcnm8gDh8M5VLzwt3gNvxdkCOXvCajLPGynYA IdDOeWRODAnzjbv63IqWVmvS6Pc+0D6/LhjvWBwDoq4xxYgf3FktOFZ1Qh/tfwNhK4mp CtHZdsBNZy7dwV3A4W+vN44G5I+uVky7rWZC7lBnEn/96ssQSQ/8npnKRi9Xgp55k016 0OJPNxa0s7ulrOzbtbR6NTWxEyMtIJXGIxXX8wKEVHM+T0EytYSsqi1Xm0TPHD+gt1sn 4pRGVMSum6Gz9IOEMfcg70xe9uJoMfytprsWp5T6H7xp8O/7qmtqhjhf4GslxBjjx5Nt WUyQ== X-Gm-Message-State: AHYfb5jKC6PGcDWv3K3TUpihcE0cpExeloQw7wIQXSwvGOFT+Y2i9UDX JzO3DkCu1b3ajA== X-Received: by 10.84.218.68 with SMTP id f4mr917198plm.214.1503410804698; Tue, 22 Aug 2017 07:06:44 -0700 (PDT) Received: from gmail.com ([59.94.207.33]) by smtp.gmail.com with ESMTPSA id x4sm26167080pfb.79.2017.08.22.07.06.39 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 22 Aug 2017 07:06:43 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Tue, 22 Aug 2017 19:36:36 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, liviu.dudau@arm.com, sudeep.holla@arm.com, lorenzo.pieralisi@arm.com, mturquette@baylibre.com, sboyd@codeaurora.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] clk: versatile: make clk_ops const Date: Tue, 22 Aug 2017 19:36:26 +0530 Message-Id: <1503410786-25519-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make this const as it is only stored in the const field of a clk_init_data structure. Signed-off-by: Bhumika Goyal Acked-by: Liviu Dudau --- drivers/clk/versatile/clk-vexpress-osc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/versatile/clk-vexpress-osc.c b/drivers/clk/versatile/clk-vexpress-osc.c index 7e5add7..e7a868b 100644 --- a/drivers/clk/versatile/clk-vexpress-osc.c +++ b/drivers/clk/versatile/clk-vexpress-osc.c @@ -61,7 +61,7 @@ static int vexpress_osc_set_rate(struct clk_hw *hw, unsigned long rate, return regmap_write(osc->reg, 0, rate); } -static struct clk_ops vexpress_osc_ops = { +static const struct clk_ops vexpress_osc_ops = { .recalc_rate = vexpress_osc_recalc_rate, .round_rate = vexpress_osc_round_rate, .set_rate = vexpress_osc_set_rate,