aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk.c
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2013-06-29 09:14:19 -0400
committerMike Turquette <mturquette@linaro.org>2013-07-25 17:06:11 -0400
commit24ee1a083cbe0b0364a27404dc01a665b31839cb (patch)
tree1a50a7ba3a02c1354be2e1d4ebf4c1ec574ab3ec /drivers/clk/clk.c
parent07c2ae9cc6a49bf6403a5a156f897dcb30b5ccf4 (diff)
clk: fix typos
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r--drivers/clk/clk.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 54a191c5bbf0..56a00db61332 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -702,7 +702,7 @@ void __clk_unprepare(struct clk *clk)
702 702
703/** 703/**
704 * clk_unprepare - undo preparation of a clock source 704 * clk_unprepare - undo preparation of a clock source
705 * @clk: the clk being unprepare 705 * @clk: the clk being unprepared
706 * 706 *
707 * clk_unprepare may sleep, which differentiates it from clk_disable. In a 707 * clk_unprepare may sleep, which differentiates it from clk_disable. In a
708 * simple case, clk_unprepare can be used instead of clk_disable to gate a clk 708 * simple case, clk_unprepare can be used instead of clk_disable to gate a clk
@@ -869,6 +869,7 @@ EXPORT_SYMBOL_GPL(clk_enable);
869/** 869/**
870 * __clk_round_rate - round the given rate for a clk 870 * __clk_round_rate - round the given rate for a clk
871 * @clk: round the rate of this clock 871 * @clk: round the rate of this clock
872 * @rate: the rate which is to be rounded
872 * 873 *
873 * Caller must hold prepare_lock. Useful for clk_ops such as .set_rate 874 * Caller must hold prepare_lock. Useful for clk_ops such as .set_rate
874 */ 875 */
@@ -956,7 +957,7 @@ static int __clk_notify(struct clk *clk, unsigned long msg,
956 * 957 *
957 * Walks the subtree of clks starting with clk and recalculates rates as it 958 * Walks the subtree of clks starting with clk and recalculates rates as it
958 * goes. Note that if a clk does not implement the .recalc_rate callback then 959 * goes. Note that if a clk does not implement the .recalc_rate callback then
959 * it is assumed that the clock will take on the rate of it's parent. 960 * it is assumed that the clock will take on the rate of its parent.
960 * 961 *
961 * clk_recalc_rates also propagates the POST_RATE_CHANGE notification, 962 * clk_recalc_rates also propagates the POST_RATE_CHANGE notification,
962 * if necessary. 963 * if necessary.
@@ -1026,7 +1027,7 @@ EXPORT_SYMBOL_GPL(clk_get_rate);
1026 * pre-rate change notifications and returns early if no clks in the 1027 * pre-rate change notifications and returns early if no clks in the
1027 * subtree have subscribed to the notifications. Note that if a clk does not 1028 * subtree have subscribed to the notifications. Note that if a clk does not
1028 * implement the .recalc_rate callback then it is assumed that the clock will 1029 * implement the .recalc_rate callback then it is assumed that the clock will
1029 * take on the rate of it's parent. 1030 * take on the rate of its parent.
1030 * 1031 *
1031 * Caller must hold prepare_lock. 1032 * Caller must hold prepare_lock.
1032 */ 1033 */
@@ -1198,7 +1199,7 @@ static void clk_change_rate(struct clk *clk)
1198 * outcome of clk's .round_rate implementation. If *parent_rate is unchanged 1199 * outcome of clk's .round_rate implementation. If *parent_rate is unchanged
1199 * after calling .round_rate then upstream parent propagation is ignored. If 1200 * after calling .round_rate then upstream parent propagation is ignored. If
1200 * *parent_rate comes back with a new rate for clk's parent then we propagate 1201 * *parent_rate comes back with a new rate for clk's parent then we propagate
1201 * up to clk's parent and set it's rate. Upward propagation will continue 1202 * up to clk's parent and set its rate. Upward propagation will continue
1202 * until either a clk does not support the CLK_SET_RATE_PARENT flag or 1203 * until either a clk does not support the CLK_SET_RATE_PARENT flag or
1203 * .round_rate stops requesting changes to clk's parent_rate. 1204 * .round_rate stops requesting changes to clk's parent_rate.
1204 * 1205 *
@@ -1648,7 +1649,7 @@ int __clk_init(struct device *dev, struct clk *clk)
1648 * The .init callback is not used by any of the basic clock types, but 1649 * The .init callback is not used by any of the basic clock types, but
1649 * exists for weird hardware that must perform initialization magic. 1650 * exists for weird hardware that must perform initialization magic.
1650 * Please consider other ways of solving initialization problems before 1651 * Please consider other ways of solving initialization problems before
1651 * using this callback, as it's use is discouraged. 1652 * using this callback, as its use is discouraged.
1652 */ 1653 */
1653 if (clk->ops->init) 1654 if (clk->ops->init)
1654 clk->ops->init(clk->hw); 1655 clk->ops->init(clk->hw);
@@ -1675,7 +1676,7 @@ out:
1675 * very large numbers of clocks that need to be statically initialized. It is 1676 * very large numbers of clocks that need to be statically initialized. It is
1676 * a layering violation to include clk-private.h from any code which implements 1677 * a layering violation to include clk-private.h from any code which implements
1677 * a clock's .ops; as such any statically initialized clock data MUST be in a 1678 * a clock's .ops; as such any statically initialized clock data MUST be in a
1678 * separate C file from the logic that implements it's operations. Returns 0 1679 * separate C file from the logic that implements its operations. Returns 0
1679 * on success, otherwise an error code. 1680 * on success, otherwise an error code.
1680 */ 1681 */
1681struct clk *__clk_register(struct device *dev, struct clk_hw *hw) 1682struct clk *__clk_register(struct device *dev, struct clk_hw *hw)