@@ -136,10 +136,6 @@ struct clk_duty {
136136 * 0. Returns the calculated rate. Optional, but recommended - if
137137 * this op is not set then clock rate will be initialized to 0.
138138 *
139- * @round_rate: Given a target rate as input, returns the closest rate actually
140- * supported by the clock. The parent rate is an input/output
141- * parameter.
142- *
143139 * @determine_rate: Given a target rate as input, returns the closest rate
144140 * actually supported by the clock, and optionally the parent clock
145141 * that should be used to provide the clock rate.
@@ -163,13 +159,13 @@ struct clk_duty {
163159 *
164160 * @set_rate: Change the rate of this clock. The requested rate is specified
165161 * by the second argument, which should typically be the return
166- * of .round_rate call. The third argument gives the parent rate
167- * which is likely helpful for most .set_rate implementation.
162+ * of .determine_rate call. The third argument gives the parent
163+ * rate which is likely helpful for most .set_rate implementation.
168164 * Returns 0 on success, -EERROR otherwise.
169165 *
170166 * @set_rate_and_parent: Change the rate and the parent of this clock. The
171167 * requested rate is specified by the second argument, which
172- * should typically be the return of .round_rate call. The
168+ * should typically be the return of clk_round_rate() call. The
173169 * third argument gives the parent rate which is likely helpful
174170 * for most .set_rate_and_parent implementation. The fourth
175171 * argument gives the parent index. This callback is optional (and
@@ -244,8 +240,6 @@ struct clk_ops {
244240 void (* restore_context )(struct clk_hw * hw );
245241 unsigned long (* recalc_rate )(struct clk_hw * hw ,
246242 unsigned long parent_rate );
247- long (* round_rate )(struct clk_hw * hw , unsigned long rate ,
248- unsigned long * parent_rate );
249243 int (* determine_rate )(struct clk_hw * hw ,
250244 struct clk_rate_request * req );
251245 int (* set_parent )(struct clk_hw * hw , u8 index );
@@ -679,7 +673,7 @@ struct clk_div_table {
679673 * @lock: register lock
680674 *
681675 * Clock with an adjustable divider affecting its output frequency. Implements
682- * .recalc_rate, .set_rate and .round_rate
676+ * .recalc_rate, .set_rate and .determine_rate
683677 *
684678 * @flags:
685679 * CLK_DIVIDER_ONE_BASED - by default the divisor is the value read from the
@@ -739,14 +733,6 @@ extern const struct clk_ops clk_divider_ro_ops;
739733unsigned long divider_recalc_rate (struct clk_hw * hw , unsigned long parent_rate ,
740734 unsigned int val , const struct clk_div_table * table ,
741735 unsigned long flags , unsigned long width );
742- long divider_round_rate_parent (struct clk_hw * hw , struct clk_hw * parent ,
743- unsigned long rate , unsigned long * prate ,
744- const struct clk_div_table * table ,
745- u8 width , unsigned long flags );
746- long divider_ro_round_rate_parent (struct clk_hw * hw , struct clk_hw * parent ,
747- unsigned long rate , unsigned long * prate ,
748- const struct clk_div_table * table , u8 width ,
749- unsigned long flags , unsigned int val );
750736int divider_determine_rate (struct clk_hw * hw , struct clk_rate_request * req ,
751737 const struct clk_div_table * table , u8 width ,
752738 unsigned long flags );
@@ -1126,7 +1112,7 @@ void of_fixed_factor_clk_setup(struct device_node *node);
11261112 *
11271113 * Clock with a fixed multiplier and divider. The output frequency is the
11281114 * parent clock rate divided by div and multiplied by mult.
1129- * Implements .recalc_rate, .set_rate, .round_rate and .recalc_accuracy
1115+ * Implements .recalc_rate, .set_rate, .determine_rate and .recalc_accuracy
11301116 *
11311117 * Flags:
11321118 * * CLK_FIXED_FACTOR_FIXED_ACCURACY - Use the value in @acc instead of the
@@ -1254,7 +1240,7 @@ void clk_hw_unregister_fractional_divider(struct clk_hw *hw);
12541240 * @lock: register lock
12551241 *
12561242 * Clock with an adjustable multiplier affecting its output frequency.
1257- * Implements .recalc_rate, .set_rate and .round_rate
1243+ * Implements .recalc_rate, .set_rate and .determine_rate
12581244 *
12591245 * @flags:
12601246 * CLK_MULTIPLIER_ZERO_BYPASS - By default, the multiplier is the value read
@@ -1437,26 +1423,6 @@ static inline void __clk_hw_set_clk(struct clk_hw *dst, struct clk_hw *src)
14371423 dst -> core = src -> core ;
14381424}
14391425
1440- static inline long divider_round_rate (struct clk_hw * hw , unsigned long rate ,
1441- unsigned long * prate ,
1442- const struct clk_div_table * table ,
1443- u8 width , unsigned long flags )
1444- {
1445- return divider_round_rate_parent (hw , clk_hw_get_parent (hw ),
1446- rate , prate , table , width , flags );
1447- }
1448-
1449- static inline long divider_ro_round_rate (struct clk_hw * hw , unsigned long rate ,
1450- unsigned long * prate ,
1451- const struct clk_div_table * table ,
1452- u8 width , unsigned long flags ,
1453- unsigned int val )
1454- {
1455- return divider_ro_round_rate_parent (hw , clk_hw_get_parent (hw ),
1456- rate , prate , table , width , flags ,
1457- val );
1458- }
1459-
14601426/*
14611427 * FIXME clock api without lock protection
14621428 */
0 commit comments