mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
To: Stephen Warren <swarren@wwwdotorg.org>,
	Thierry Reding <thierry.reding@gmail.com>,
	Mike Turquette <mturquette@linaro.org>,
	Rabin Vincent <rabin.vincent@stericsson.com>,
	linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Subject: [RFC 1/5] clk: Add temporary mapping to the existing API
Date: Fri, 27 Jun 2014 09:57:48 +0200	[thread overview]
Message-ID: <1403855872-14749-2-git-send-email-tomeu.vizoso@collabora.com> (raw)
In-Reply-To: <1403855872-14749-1-git-send-email-tomeu.vizoso@collabora.com>

To preserve git-bisectability, add aliases from the future provider API to the
existing public API.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
---

Don't like this much, would be great to hear of alternatives.

 include/linux/clk-provider.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 0c287db..e9ccc50 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -16,6 +16,24 @@
 
 #ifdef CONFIG_COMMON_CLK
 
+/* Temporarily map the to-be-added API to the old API, just so stuff compiles */
+#define clk_core			clk
+
+#define clk_core_to_clk
+
+#define __clk_get_internal		clk_get
+#define __clk_get_sys_internal		clk_get_sys
+#define __devm_clk_get_internal		devm_clk_get
+#define __of_clk_get_internal		of_clk_get
+#define __of_clk_get_by_name_internal	of_clk_get_by_name
+
+#define __clk_set_rate_internal		clk_set_rate
+#define __clk_get_rate_internal		clk_get_rate
+#define __clk_set_parent_internal	clk_set_parent
+#define __clk_get_parent_internal	clk_get_parent
+#define __clk_prepare_internal		clk_prepare
+#define __clk_unprepare_internal	clk_unprepare
+
 /*
  * flags used across common struct clk.  these flags should only affect the
  * top-level framework.  custom flags for dealing with hardware specifics
-- 
1.9.3


  reply	other threads:[~2014-06-27  8:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-27  7:57 [RFC 0/5] Per-user clock constraints Tomeu Vizoso
2014-06-27  7:57 ` Tomeu Vizoso [this message]
2014-06-27  7:57 ` [RFC 2/5] clk: Move all drivers to use internal API Tomeu Vizoso
2014-06-27  7:57 ` [RFC 3/5] clk: use struct clk only for external API Tomeu Vizoso
2014-06-27 22:37   ` Stephen Warren
2014-06-30 19:43     ` Rabin Vincent
2014-06-27  7:57 ` [RFC 4/5] clk: per-user clock accounting for debug Tomeu Vizoso
2014-06-27 22:44   ` Stephen Warren
2014-06-27 22:51     ` Stephen Warren
2014-06-30 19:49     ` Rabin Vincent
2014-06-27  7:57 ` [RFC 5/5] clk: Add floor and ceiling constraints to clock rates Tomeu Vizoso
2014-06-27 22:57   ` Stephen Warren
2014-06-27 23:10     ` Thierry Reding
2014-07-03 14:02     ` Tomeu Vizoso
2014-06-27 22:30 ` [RFC 0/5] Per-user clock constraints Stephen Warren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1403855872-14749-2-git-send-email-tomeu.vizoso@collabora.com \
    --to=tomeu.vizoso@collabora.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=mturquette@linaro.org \
    --cc=rabin.vincent@stericsson.com \
    --cc=swarren@wwwdotorg.org \
    --cc=thierry.reding@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®