mirror of
https://github.com/torvalds/linux.git
synced 2024-12-20 10:01:56 +00:00
Merge branch 'clk-doc' into clk-next
* clk-doc: clk: add function documentation for clk_hw_round_rate()
This commit is contained in:
commit
9ebc0617d6
@ -1400,6 +1400,21 @@ int __clk_determine_rate(struct clk_hw *hw, struct clk_rate_request *req)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(__clk_determine_rate);
|
||||
|
||||
/**
|
||||
* clk_hw_round_rate() - round the given rate for a hw clk
|
||||
* @hw: the hw clk for which we are rounding a rate
|
||||
* @rate: the rate which is to be rounded
|
||||
*
|
||||
* Takes in a rate as input and rounds it to a rate that the clk can actually
|
||||
* use.
|
||||
*
|
||||
* Context: prepare_lock must be held.
|
||||
* For clk providers to call from within clk_ops such as .round_rate,
|
||||
* .determine_rate.
|
||||
*
|
||||
* Return: returns rounded rate of hw clk if clk supports round_rate operation
|
||||
* else returns the parent rate.
|
||||
*/
|
||||
unsigned long clk_hw_round_rate(struct clk_hw *hw, unsigned long rate)
|
||||
{
|
||||
int ret;
|
||||
|
Loading…
Reference in New Issue
Block a user