[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190715201234.13556-2-andrew.smirnov@gmail.com>
Date: Mon, 15 Jul 2019 13:12:30 -0700
From: Andrey Smirnov <andrew.smirnov@...il.com>
To: linux-clk@...r.kernel.org
Cc: Andrey Smirnov <andrew.smirnov@...il.com>,
Russell King <linux@...linux.org.uk>,
Chris Healy <cphealy@...il.com>, linux-kernel@...r.kernel.org
Subject: [PATCH 2/6] clk: Sync prototypes for clk_bulk_prepare()
No-op version of clk_bulk_prepare() should have the same protoype as
the real implementation, so constify the last argument to make it so.
Signed-off-by: Andrey Smirnov <andrew.smirnov@...il.com>
Cc: Russell King <linux@...linux.org.uk>
Cc: Chris Healy <cphealy@...il.com>
Cc: linux-clk@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
---
include/linux/clk.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/clk.h b/include/linux/clk.h
index a35868ccc912..8af6b943bb9a 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -239,7 +239,8 @@ static inline int clk_prepare(struct clk *clk)
return 0;
}
-static inline int __must_check clk_bulk_prepare(int num_clks, struct clk_bulk_data *clks)
+static inline int __must_check
+clk_bulk_prepare(int num_clks, const struct clk_bulk_data *clks)
{
might_sleep();
return 0;
--
2.21.0
Powered by blists - more mailing lists