Thread (23 messages) 23 messages, 3 authors, 2021-08-30

Re: [PATCH v9 1/8] opp: Add dev_pm_opp_from_clk_rate()

From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2021-08-27 03:00:28
Also in: linux-tegra, lkml

On 27-08-21, 04:34, Dmitry Osipenko wrote:
+/**
+ * dev_pm_opp_from_clk_rate() - Get OPP from current clock rate
+ * @dev:	device for which we do this operation
+ *
+ * Get OPP which corresponds to the current clock rate of a device.
+ *
+ * Return: pointer to 'struct dev_pm_opp' on success and errorno otherwise.
+ */
+struct dev_pm_opp *dev_pm_opp_from_clk_rate(struct device *dev)
I will rather call it dev_pm_opp_get_current(), and do the magic to find the
current OPP here as well. No need to reinvent the wheel.

-- 
viresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help