[PATCH 1/6] PM / clock_ops: Add helpers combining generic runtime and generic clock PM
Sergei Shtylyov
sergei.shtylyov at cogentembedded.com
Thu Apr 24 04:16:49 PDT 2014
Hello.
On 24-04-2014 14:26, Geert Uytterhoeven wrote:
> Add helpers pm_generic_runtime_clk_suspend() and
> pm_generic_clk_runtime_resume(), combining generic runtime PM and generic
> clock PM.
> Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
[...]
> diff --git a/include/linux/pm_clock.h b/include/linux/pm_clock.h
> index 6981aa288c45..bf1e4d09a0ca 100644
> --- a/include/linux/pm_clock.h
> +++ b/include/linux/pm_clock.h
> @@ -35,6 +35,8 @@ extern int pm_clk_add_clk(struct device *dev, struct clk *clk);
> extern void pm_clk_remove(struct device *dev, const char *con_id);
> extern int pm_clk_suspend(struct device *dev);
> extern int pm_clk_resume(struct device *dev);
> +extern int pm_generic_runtime_clk_suspend(struct device *dev);
> +extern int pm_generic_clk_runtime_resume(struct device *dev);
Shouldn't these function names be symmetric? I think '_clk' and '_runtime'
need swapping in one case.
WBR, Sergei
More information about the linux-arm-kernel
mailing list